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:
maurer.it 2011-02-23 13:53:18 -05:00
parent 1f41878015
commit 02891a25a8

View file

@ -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;
}