Commit 4d90f00d authored by jwyxym's avatar jwyxym Committed by GitHub

Update AutoChessExecutor.cs

parent 941b5ba1
...@@ -483,11 +483,22 @@ namespace WindBot.Game.AI.Decks ...@@ -483,11 +483,22 @@ namespace WindBot.Game.AI.Decks
{ {
if (BlackmailAttackerSunmmon(cardId)) if (BlackmailAttackerSunmmon(cardId))
return CardPosition.FaceUpAttack; return CardPosition.FaceUpAttack;
if (cardData.Attack < 0)
if (Bot.LifePoints <= 1500)
{
if (cardData.Attack >= 1800 && cardData.Attack > cardData.Defense)
return CardPosition.FaceUpAttack;
else
return CardPosition.FaceUpDefence;
}
else
{
if (cardData.Defense < 3000)
return CardPosition.FaceUpAttack; return CardPosition.FaceUpAttack;
if (cardData.Attack <= 1000) else
return CardPosition.FaceUpDefence; return CardPosition.FaceUpDefence;
} }
}
return 0; return 0;
} }
public override BattlePhaseAction OnSelectAttackTarget(ClientCard attacker, IList<ClientCard> defenders) public override BattlePhaseAction OnSelectAttackTarget(ClientCard attacker, IList<ClientCard> defenders)
...@@ -570,7 +581,15 @@ namespace WindBot.Game.AI.Decks ...@@ -570,7 +581,15 @@ namespace WindBot.Game.AI.Decks
if (Card.IsFaceup() && Card.IsDefense()) if (Card.IsFaceup() && Card.IsDefense())
return true; return true;
} }
if (Card.Defense > Card.Attack)
return DefaultMonsterRepos(); return DefaultMonsterRepos();
else
{
if (Card.IsFaceup() && Card.IsAttack())
return Bot.LifePoints <= 1500;
if (Card.IsDefense())
return Bot.LifePoints > 1500;
}
} }
return false; return false;
......
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