mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
Getting stack ability in Stack objects.
This commit is contained in:
parent
333562f721
commit
115799564f
3 changed files with 10 additions and 0 deletions
|
@ -329,4 +329,9 @@ public class Spell<T extends Spell<T>> implements StackObject, Card {
|
|||
public boolean cast(Game game, Zone fromZone, SpellAbility ability, UUID controllerId) {
|
||||
throw new UnsupportedOperationException("Unsupported operation");
|
||||
}
|
||||
|
||||
public Ability getStackAbility() {
|
||||
return this.ability;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -302,4 +302,7 @@ public class StackAbility implements StackObject, Ability {
|
|||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
public Ability getStackAbility() {
|
||||
return ability;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
package mage.game.stack;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.*;
|
||||
import java.util.UUID;
|
||||
import mage.MageObject;
|
||||
|
@ -41,6 +42,7 @@ public interface StackObject extends MageObject {
|
|||
public UUID getControllerId();
|
||||
public void checkTriggers(GameEvent event, Game game);
|
||||
public void counter(UUID sourceId, Game game);
|
||||
public Ability getStackAbility();
|
||||
@Override
|
||||
public StackObject copy();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue