Removed Workarounds, Added support for Can't Gain life...

spellmastery - can play as though had flash used in conjunction for
alternative cost.
nolifegain, nolifegainopponent - cannot gain life.
This commit is contained in:
Anthony Calosa
2015-09-21 15:22:28 +08:00
parent 8543977a2f
commit 28f758e421
5 changed files with 328 additions and 16 deletions

View File

@@ -147,6 +147,8 @@ int Player::gainOrLoseLife(int value)
{
if (!value)
return 0; //Don't do anything if there's no actual life change
if (value>0 && (opponent()->game->battlefield->hasAbility(Constants::NOLIFEGAINOPPONENT)||game->battlefield->hasAbility(Constants::NOLIFEGAIN)))//nolifegain
return 0;
thatmuch = abs(value); //the value that much is a variable to be used with triggered abilities.
//ie:when ever you gain life, draw that many cards. when used in a trigger draw:thatmuch, will return the value