diff --git a/Mage.Sets/src/mage/sets/mirrodin/Glimmervoid.java b/Mage.Sets/src/mage/sets/mirrodin/Glimmervoid.java index 75ab8e50f0..2b09baaad7 100644 --- a/Mage.Sets/src/mage/sets/mirrodin/Glimmervoid.java +++ b/Mage.Sets/src/mage/sets/mirrodin/Glimmervoid.java @@ -68,6 +68,8 @@ public class Glimmervoid extends CardImpl { class GlimmervoidTriggeredAbility extends TriggeredAbilityImpl { + static final FilterArtifactPermanent filter = new FilterArtifactPermanent(); + GlimmervoidTriggeredAbility() { super(Zone.BATTLEFIELD, new SacrificeSourceEffect()); } @@ -81,6 +83,11 @@ class GlimmervoidTriggeredAbility extends TriggeredAbilityImpl { return new GlimmervoidTriggeredAbility(this); } + @java.lang.Override + public boolean checkInterveningIfClause(Game game) { + return game.getBattlefield().countAll(filter, controllerId, game) == 0; + } + @java.lang.Override public boolean checkEventType(GameEvent event, Game game) { return event.getType() == EventType.END_TURN_STEP_PRE; @@ -88,11 +95,7 @@ class GlimmervoidTriggeredAbility extends TriggeredAbilityImpl { @java.lang.Override public boolean checkTrigger(GameEvent event, Game game) { - FilterArtifactPermanent filter = new FilterArtifactPermanent(); - if (!game.getBattlefield().contains(filter, controllerId, 1, game)) { - return true; - } - return false; + return true; } @java.lang.Override