mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 21:42:07 -08:00
This commit is contained in:
parent
bc076cfb93
commit
2e4baeed93
1 changed files with 8 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue