mirror of
https://github.com/magefree/mage.git
synced 2026-01-21 18:59:58 -08:00
modified triggered abilities, continuous effects and zones
This commit is contained in:
parent
fe0c5e48e9
commit
1d32f49fd0
78 changed files with 279 additions and 434 deletions
|
|
@ -461,6 +461,12 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInUseableZone(Game game) {
|
||||
Zone test = game.getState().getZone(sourceId);
|
||||
return test != null && zone.match(test);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getRule();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue