* Kroxa, Titan of Death's Hunger - fixed that it sacrifice itself on escape cast too;

This commit is contained in:
Oleg Agafonov 2020-01-16 23:20:07 +04:00
parent 68e5932d37
commit ef224fe15c

View file

@ -83,8 +83,7 @@ class KroxaTitanOfDeathsHungerEntersEffect extends OneShotEffect {
if (permanent == null) {
return false;
}
Spell spell = game.getSpellOrLKIStack(source.getSourceId());
if (spell != null && spell.getSpellAbility() instanceof EscapeAbility) {
if (EscapeAbility.wasCastedWithEscape(game, source.getSourceId(), source.getSourceObjectZoneChangeCounter())) {
return false;
}
return permanent.sacrifice(source.getSourceId(), game);