Commit 5da063b4 authored by jwyxym's avatar jwyxym Committed by GitHub

Update AutoChessExecutor.cs

parent 6d604610
......@@ -303,7 +303,7 @@ namespace WindBot.Game.AI.Decks
}
else if (cards2.Count() > 0)
return base.OnSelectAttackTarget(attacker, cards2);
else if (cards4.Count() > 0)
else if (cards4.Count() > 0 || attacker.Attack >= 1200 )
return AI.Attack(attacker, cards4[0]);
else if (cards3.Count() > 0)
return base.OnSelectAttackTarget(attacker, cards3);
......@@ -413,12 +413,9 @@ namespace WindBot.Game.AI.Decks
return DefaultMonsterSummon();
else if (Bot.LifePoints > 1500)
{
if (DontSummon(Card.Id))
return false;
else
return DefaultMonsterSummon();
return DefaultMonsterSummon() && !DontSummon(Card.Id);
}
else if (Bot.LifePoints <= 1500 && GetZoneCards(CardLocation.MonsterZone, Enemy).Count(card => card != null && card.Attack < Card.Attack) > 0)
else if (Bot.LifePoints <= 1500 && GetZoneCards(CardLocation.MonsterZone, Enemy).Count(card => card != null && card.Attack < Card.Attack) > 0 || GetZoneCards(CardLocation.MonsterZone, Enemy).Count() == 0 || Card.Attack >= 1500)
return DefaultMonsterSummon();
return false;
}
......@@ -427,7 +424,7 @@ namespace WindBot.Game.AI.Decks
if (Card.HasType(CardType.Flip))
return DefaultMonsterSummon();
if (Card.HasSetcode(0x40)) return false;
return DefaultMonsterSummon() && (Bot.LifePoints <= 1500 || Card.HasType(CardType.Flip) || GetZoneCards(CardLocation.MonsterZone, Bot).Count() == 0 || GetZoneCards(CardLocation.MonsterZone, Bot).Count() <= GetZoneCards(CardLocation.MonsterZone, Enemy).Count());
return DefaultMonsterSummon() && (Bot.LifePoints <= 1500 || (GetZoneCards(CardLocation.MonsterZone, Bot).Count() == 0 && Bot.LifePoints <= 4000));
}
}
}
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