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