Fixed escape being castable from non graveyard zones ex. Cascade (fixes #7225) (#7319)

This commit is contained in:
Daniel Bomar 2021-01-01 00:21:59 -06:00 committed by GitHub
parent bc076cfb93
commit 2e4baeed93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,6 +66,14 @@ public class EscapeAbility extends SpellAbility {
" other cards from your graveyard. <i>(You may cast this card from your graveyard for its escape cost.)</i>";
}
@Override
public ActivationStatus canActivate(UUID playerId, Game game) {
if (game.getState().getZone(getSourceId()) != Zone.GRAVEYARD) {
return ActivationStatus.getFalse();
}
return super.canActivate(playerId, game);
}
@Override
public boolean activate(Game game, boolean noMana) {
if (super.activate(game, noMana)) {