fixed a condition where scry core wasnt triggering its after effect

This commit is contained in:
zethfoxster
2016-07-26 19:35:10 -04:00
parent 61068ee166
commit 4f0da67a83
+12
View File
@@ -773,6 +773,18 @@ bool MTGScryCards::CheckUserInput(JButton key)
initDisplay(revealTopAmount); initDisplay(revealTopAmount);
abilitySecond = contructAbility(abilityTwo); abilitySecond = contructAbility(abilityTwo);
game->addObserver(abilitySecond); game->addObserver(abilitySecond);
if(revealTopAmount == 0 && dontRevealAfter && delayed)
{
MTGAbility * delayedA = contructAbility(delayedAbilityString);
if (delayedA->oneShot)
{
delayedA->resolve();
SAFE_DELETE(delayedA);
}
else
delayedA->addToGame();
}
} }
} }