Fixed Angel of Vitality in M20 set and added new keyword "except" for @lifeof trigger in order to avoid a life gain loop when a card needs to increment life gaining in that phase (eg. Angel of Vitality).

This commit is contained in:
valfieri
2019-09-10 17:02:50 +02:00
parent 6ecd762d18
commit 06ec97676e
11 changed files with 67 additions and 39 deletions
+4 -3
View File
@@ -69,9 +69,10 @@ public:
int afterDamage();
int gainLife(int value);
int loseLife(int value);
int gainOrLoseLife(int value);
// Added source of life gain/loss in order to check later a possible exception.
int gainLife(int value, MTGCardInstance* source);
int loseLife(int value, MTGCardInstance* source);
int gainOrLoseLife(int value, MTGCardInstance* source);
bool isPoisoned() {return (poisonCount > 0);}
int poisoned();