mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
previous implementation didn't work with Monument, modified to be used when a zone change from battlefield to graveyard happens.
This commit is contained in:
parent
1f41878015
commit
02891a25a8
1 changed files with 5 additions and 3 deletions
|
@ -107,10 +107,12 @@ class NissasChosenEffect extends ReplacementEffectImpl<NissasChosenEffect> {
|
|||
|
||||
@Override
|
||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
if ( event.getType() == EventType.DESTROY_PERMANENT ||
|
||||
event.getType() == EventType.DESTROYED_PERMANENT )
|
||||
if ( event.getType() == EventType.ZONE_CHANGE )
|
||||
{
|
||||
return true;
|
||||
ZoneChangeEvent zEvent = (ZoneChangeEvent)event;
|
||||
if ( zEvent.getFromZone() == Zone.BATTLEFIELD && zEvent.getToZone() == Zone.GRAVEYARD ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue