From 7c559348bdbcc0c609555c772e65760ed8709c18 Mon Sep 17 00:00:00 2001 From: ymdqqqq Date: Thu, 7 Nov 2024 18:36:53 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=20&&=20add=20=E6=82=A6=E8=80=B3=E9=87=91?= =?UTF-8?q?=E5=B1=9E=E3=80=81=E5=88=BA=E8=80=B3=E9=87=91=E5=B1=9E=20detail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sim_ETC_427.cs" | 14 +++++++++++++- .../Sim_ETC_427t.cs" | 14 +++++++++++++- .../Sim_VAC_933t.cs" | 2 ++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git "a/Routines/DefaultRoutine/Silverfish/cards/1809-\344\274\240\345\245\207\351\237\263\344\271\220\350\212\202/Sim_ETC_427.cs" "b/Routines/DefaultRoutine/Silverfish/cards/1809-\344\274\240\345\245\207\351\237\263\344\271\220\350\212\202/Sim_ETC_427.cs" index 12f03fab..f36ced58 100644 --- "a/Routines/DefaultRoutine/Silverfish/cards/1809-\344\274\240\345\245\207\351\237\263\344\271\220\350\212\202/Sim_ETC_427.cs" +++ "b/Routines/DefaultRoutine/Silverfish/cards/1809-\344\274\240\345\245\207\351\237\263\344\271\220\350\212\202/Sim_ETC_427.cs" @@ -11,7 +11,19 @@ namespace HREngine.Bots //随机使你手牌中的4张随从牌获得+2/+2。(每回合切换。) class Sim_ETC_427 : SimTemplate { - + public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice) + { + if (ownplay) { + int i = 0; + foreach (Handmanager.Handcard handCard in p.owncards) { + if (handCard.card.type == CardDB.cardtype.MOB && i < 4) { + i++; + handCard.addattack += 2; + handCard.addHp += 2; + } + } + } + } } } diff --git "a/Routines/DefaultRoutine/Silverfish/cards/1809-\344\274\240\345\245\207\351\237\263\344\271\220\350\212\202/Sim_ETC_427t.cs" "b/Routines/DefaultRoutine/Silverfish/cards/1809-\344\274\240\345\245\207\351\237\263\344\271\220\350\212\202/Sim_ETC_427t.cs" index 8c791565..c909e951 100644 --- "a/Routines/DefaultRoutine/Silverfish/cards/1809-\344\274\240\345\245\207\351\237\263\344\271\220\350\212\202/Sim_ETC_427t.cs" +++ "b/Routines/DefaultRoutine/Silverfish/cards/1809-\344\274\240\345\245\207\351\237\263\344\271\220\350\212\202/Sim_ETC_427t.cs" @@ -11,7 +11,19 @@ namespace HREngine.Bots //随机使你手牌中的2张随从牌获得+4/+4。(每回合切换。) class Sim_ETC_427t : SimTemplate { - + public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice) + { + if (ownplay) { + int i = 0; + foreach (Handmanager.Handcard handCard in p.owncards) { + if (handCard.card.type == CardDB.cardtype.MOB && i < 2) { + i++; + handCard.addattack += 4; + handCard.addHp += 4; + } + } + } + } } } diff --git "a/Routines/DefaultRoutine/Silverfish/cards/1905-\350\203\234\345\234\260\345\216\206\351\231\251\350\256\260/Sim_VAC_933t.cs" "b/Routines/DefaultRoutine/Silverfish/cards/1905-\350\203\234\345\234\260\345\216\206\351\231\251\350\256\260/Sim_VAC_933t.cs" index 4fd13d90..45479e75 100644 --- "a/Routines/DefaultRoutine/Silverfish/cards/1905-\350\203\234\345\234\260\345\216\206\351\231\251\350\256\260/Sim_VAC_933t.cs" +++ "b/Routines/DefaultRoutine/Silverfish/cards/1905-\350\203\234\345\234\260\345\216\206\351\231\251\350\256\260/Sim_VAC_933t.cs" @@ -12,11 +12,13 @@ namespace HREngine.Bots class Sim_VAC_933t : SimTemplate { // 抽到时施放的效果 + /* public override void onCardIsDrawn(Playfield p, bool ownplay, Minion triggerEffectMinion) { int pos = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count; // 召唤一个1/1并具有冲锋的海盗 p.callKid(CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.VAC_926t), pos, ownplay, true); } + */ } } -- Gitee