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
+3 -3
View File
@@ -299,7 +299,7 @@ int LifeCost::doPay()
MTGCardInstance * _target = (MTGCardInstance *) target;
_target->controller()->loseLife(1);
_target->controller()->loseLife(1, source);
target = NULL;
if (tc)
tc->initTargets();
@@ -345,7 +345,7 @@ int SpecificLifeCost::doPay()
MTGCardInstance * _target = (MTGCardInstance *) target;
_target->controller()->loseLife(slc);
_target->controller()->loseLife(slc, source);
target = NULL;
if (tc)
tc->initTargets();
@@ -407,7 +407,7 @@ int LifeorManaCost::doPay()
}
else
{
_target->controller()->loseLife(2);
_target->controller()->loseLife(2, source);
}
target = NULL;
if (tc)