mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
commit
6f57518377
1 changed files with 4 additions and 1 deletions
|
@ -21,6 +21,7 @@ import mage.constants.Zone;
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.events.GameEvent;
|
import mage.game.events.GameEvent;
|
||||||
|
import mage.game.events.ZoneChangeEvent;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.target.targetpointer.FixedTarget;
|
import mage.target.targetpointer.FixedTarget;
|
||||||
|
|
||||||
|
@ -77,7 +78,9 @@ class PeltCollectorAbility extends TriggeredAbilityImpl {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean checkEventType(GameEvent event, Game game) {
|
public boolean checkEventType(GameEvent event, Game game) {
|
||||||
return event.getType() == GameEvent.EventType.ENTERS_THE_BATTLEFIELD;
|
return (event.getType() == GameEvent.EventType.ENTERS_THE_BATTLEFIELD)
|
||||||
|
|| (event.getType() == GameEvent.EventType.ZONE_CHANGE
|
||||||
|
&& ((ZoneChangeEvent) event).isDiesEvent()) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue