add attacker mask

This commit is contained in:
Anthony Calosa
2017-02-10 10:50:09 +08:00
parent f16755b86b
commit fc9b0b233c
3 changed files with 18 additions and 3 deletions

View File

@@ -260,9 +260,7 @@ bool Player::hasPossibleAttackers()
for (int j = 0; j < nbcards; ++j)
{
MTGCardInstance * c = z->cards[j];
if (!c->isTapped() &&
!c->hasSummoningSickness() &&
c->isCreature())
if (c->canAttack() && c->isCreature())
return true;
}
return false;