Commit 1f05c015 authored by xiaoye's avatar xiaoye

Update AI408AExecutor.cs

parent 816d9474
Pipeline #31666 passed with stage
in 50 seconds
...@@ -41,13 +41,13 @@ namespace WindBot.Game.AI.Decks ...@@ -41,13 +41,13 @@ namespace WindBot.Game.AI.Decks
private int summonInTurn = 0; private int summonInTurn = 0;
private int attacked_85306040 = 0; private int attacked_85306040 = 0;
private int attacked_79575620 = 0; private int attacked_79575620 = 0;
private int[] changePosInTurn; private int[] changePosInTurn = new int[] { 0, 0, 0, 0, 0 };
private int[] attacked = new int[] { 0, 0, 0, 0, 0 }; private int[] attacked = new int[] { 0, 0, 0, 0, 0 };
public override void OnNewTurn() public override void OnNewTurn()
{ {
summonInTurn = 0; summonInTurn = 0;
changePosInTurn = new int[0]; changePosInTurn = new int[] { 0, 0, 0, 0, 0 };
attacked = new int[] { 0, 0, 0, 0, 0 }; attacked = new int[] { 0, 0, 0, 0, 0 };
if (attacked_85306040 > 0) attacked_85306040--; if (attacked_85306040 > 0) attacked_85306040--;
attacked_79575620 = 0; attacked_79575620 = 0;
...@@ -261,7 +261,7 @@ namespace WindBot.Game.AI.Decks ...@@ -261,7 +261,7 @@ namespace WindBot.Game.AI.Decks
{ {
if (Enemy.GetSpellCount() == 0) if (Enemy.GetSpellCount() == 0)
{ {
if ((Duel.Phase == DuelPhase.Main2 || !Duel.MainPhase.CanBattlePhase) || ((changePosInTurn.Any(card => card == Card.Id) || summonInTurn == Card.Id) && !Card.IsAttack()) || !GetZoneCards(CardLocation.MonsterZone, Enemy).Any(card => card != null && card.GetDefensePower() < Card.Attack)) if ((Duel.Phase == DuelPhase.Main2 || !Duel.MainPhase.CanBattlePhase) || ((changePosInTurn[GetSequence(Card)] == Card.Id || summonInTurn == Card.Id) && !Card.IsAttack()) || !GetZoneCards(CardLocation.MonsterZone, Enemy).Any(card => card != null && card.GetDefensePower() < Card.Attack))
return GetZoneCards(CardLocation.MonsterZone, Enemy).Any(card => card != null && !card.IsShouldNotBeTarget()); return GetZoneCards(CardLocation.MonsterZone, Enemy).Any(card => card != null && !card.IsShouldNotBeTarget());
} }
else else
......
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