revert pw attack rule

need to refactor this as this cause crashes on android when you cast a
planeswalker
This commit is contained in:
Anthony Calosa
2017-03-01 16:07:12 +08:00
parent 3bf1cca118
commit d761bac85c
11 changed files with 17 additions and 48 deletions
-17
View File
@@ -690,23 +690,6 @@ int MTGCardInstance::canAttack()
return 1;
}
int MTGCardInstance::canPWAttack()
{
if (has(Constants::CANTATTACKPW))
return 0;
if (tapped)
return 0;
if (hasSummoningSickness())
return 0;
if (has(Constants::DEFENSER) && !has(Constants::CANATTACK))
return 0;
if (!isCreature())
return 0;
if (!isInPlay(observer))
return 0;
return 1;
}
int MTGCardInstance::addToToughness(int value)
{
toughness += value;