Commit f4966efc authored by mercury233's avatar mercury233

Merge branch 'master' of https://github.com/IceYGO/windbot

parents 60252a31 61d40754
This diff is collapsed.
...@@ -220,8 +220,9 @@ namespace WindBot.Game.AI.Decks ...@@ -220,8 +220,9 @@ namespace WindBot.Game.AI.Decks
{ {
CardId.WindUpSoldier, CardId.WindUpSoldier,
CardId.StarDrawing, CardId.StarDrawing,
CardId.ChronomalyGoldenJet CardId.ChronomalyGoldenJet,
}) || (Bot.HasInHand(CardId.MistArchfiend) && NeedLV5())) CardId.MistArchfiend
}))
{ {
NormalSummoned = false; NormalSummoned = false;
DoubleSummonUsed = true; DoubleSummonUsed = true;
......
...@@ -79,9 +79,9 @@ namespace WindBot.Game.AI.Decks ...@@ -79,9 +79,9 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.Activate, CardId.Number61Volcasaurus); AddExecutor(ExecutorType.Activate, CardId.Number61Volcasaurus);
// Weapons // Weapons
AddExecutor(ExecutorType.Activate, CardId.ZwTornadoBringer); AddExecutor(ExecutorType.Activate, CardId.ZwTornadoBringer, ZwWeapon);
AddExecutor(ExecutorType.Activate, CardId.ZwLightningBlade); AddExecutor(ExecutorType.Activate, CardId.ZwLightningBlade, ZwWeapon);
AddExecutor(ExecutorType.Activate, CardId.ZwAsuraStrike); AddExecutor(ExecutorType.Activate, CardId.ZwAsuraStrike, ZwWeapon);
// Special summons // Special summons
...@@ -122,6 +122,13 @@ namespace WindBot.Game.AI.Decks ...@@ -122,6 +122,13 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.Activate, CardId.SolemnStrike, DefaultSolemnStrike); AddExecutor(ExecutorType.Activate, CardId.SolemnStrike, DefaultSolemnStrike);
} }
private int ZwCount = 0;
public override void OnNewTurn()
{
ZwCount = 0;
}
public override bool OnSelectHand() public override bool OnSelectHand()
{ {
return false; return false;
...@@ -164,10 +171,16 @@ namespace WindBot.Game.AI.Decks ...@@ -164,10 +171,16 @@ namespace WindBot.Game.AI.Decks
if (ActivateDescription == Util.GetStringId(CardId.ZwLionArms, 0)) if (ActivateDescription == Util.GetStringId(CardId.ZwLionArms, 0))
return true; return true;
if (ActivateDescription == Util.GetStringId(CardId.ZwLionArms, 1)) if (ActivateDescription == Util.GetStringId(CardId.ZwLionArms, 1))
return !Card.IsDisabled(); return !Card.IsDisabled() && ZwWeapon();
return false; return false;
} }
private bool ZwWeapon()
{
ZwCount++;
return ZwCount < 10;
}
private bool ReinforcementOfTheArmy() private bool ReinforcementOfTheArmy()
{ {
AI.SelectCard( AI.SelectCard(
......
...@@ -506,6 +506,11 @@ namespace WindBot.Game ...@@ -506,6 +506,11 @@ namespace WindBot.Game
_duel.Fields[1].BattlingMonster = null; _duel.Fields[1].BattlingMonster = null;
_duel.Fields[0].UnderAttack = false; _duel.Fields[0].UnderAttack = false;
_duel.Fields[1].UnderAttack = false; _duel.Fields[1].UnderAttack = false;
List<ClientCard> monsters = _duel.Fields[0].GetMonsters();
foreach (ClientCard monster in monsters)
{
monster.Attacked = false;
}
_select_hint = 0; _select_hint = 0;
_ai.OnNewPhase(); _ai.OnNewPhase();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment