Corrections

Fix if you have a defender that can attack, it ,must be a possible
attacker.
This commit is contained in:
Anthony Calosa
2016-06-13 19:39:26 +08:00
parent 9ac1540cdc
commit 97186361a1
+3 -1
View File
@@ -253,7 +253,9 @@ bool Player::hasPossibleAttackers()
for (int j = 0; j < nbcards; ++j) for (int j = 0; j < nbcards; ++j)
{ {
MTGCardInstance * c = z->cards[j]; MTGCardInstance * c = z->cards[j];
if (c->canAttack()) if (!c->isTapped() &&
!c->hasSummoningSickness() &&
c->isCreature())
return true; return true;
} }
return false; return false;