Combat Toughness

Assign combat damage equal to its tougness...
Doran, the Siege Tower
This commit is contained in:
Anthony Calosa
2016-06-10 07:05:29 +08:00
parent c85f3aa7f7
commit 40bb9e2c37
5 changed files with 32 additions and 20 deletions

View File

@@ -1540,7 +1540,10 @@ int MTGCardInstance::stepPower(CombatStep step)
case FIRST_STRIKE:
case END_FIRST_STRIKE:
if (has(Constants::FIRSTSTRIKE) || has(Constants::DOUBLESTRIKE))
return MAX(0, power);
if(has(Constants::COMBATTOUGHNESS))
return MAX(0, toughness);
else
return MAX(0, power);
else
return 0;
case DAMAGE:
@@ -1549,7 +1552,10 @@ int MTGCardInstance::stepPower(CombatStep step)
if (has(Constants::FIRSTSTRIKE) && !has(Constants::DOUBLESTRIKE))
return 0;
else
return MAX(0, power);
if(has(Constants::COMBATTOUGHNESS))
return MAX(0, toughness);
else
return MAX(0, power);
}
}