Commit 9371b29f authored by mercury233's avatar mercury233

update rainbow deck

parent a4084169
......@@ -124,13 +124,7 @@ namespace WindBot.Game.AI
if (card != null)
return card;
if (attack == 0)
{
int selfBestAttack = GetBestAttack(Duel.Fields[0], true);
int oppoBestAttack = GetBestAttack(Duel.Fields[1], false);
if (selfBestAttack <= oppoBestAttack)
attack = oppoBestAttack;
return GetOneEnnemyBetterThanValue(oppoBestAttack, false);
}
attack = GetBestAttack(Duel.Fields[0], true);
return GetOneEnnemyBetterThanValue(attack, false);
}
......
This diff is collapsed.
......@@ -164,13 +164,16 @@ namespace WindBot.Game
{
int remaining = initialCount;
foreach (ClientCard card in Hand)
if (card.Id == cardId)
if (card != null && card.Id == cardId)
remaining--;
foreach (ClientCard card in SpellZone)
if (card != null && card.Id == cardId)
remaining--;
foreach (ClientCard card in Graveyard)
if (card.Id == cardId)
if (card != null && card.Id == cardId)
remaining--;
foreach (ClientCard card in Banished)
if (card.Id == cardId)
if (card != null && card.Id == cardId)
remaining--;
return (remaining < 0) ? 0 : remaining;
}
......
No preview for this file type
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