planeswalker attack

This commit is contained in:
Anthony Calosa
2017-03-01 06:36:10 +08:00
parent 22376e873e
commit 5f1874edae
9 changed files with 40 additions and 7 deletions

View File

@@ -262,6 +262,8 @@ bool Player::hasPossibleAttackers()
MTGCardInstance * c = z->cards[j];
if (c->canAttack() && c->isCreature())
return true;
if (c->canPWAttack() && c->isCreature() && c->controller()->opponent()->inPlay()->hasType("planeswalker"))
return true;
}
return false;
}