From 7c515ba60f8b6323894cd910027bbe887876262e Mon Sep 17 00:00:00 2001 From: Dustin Conrad Date: Thu, 21 Aug 2014 19:46:46 -0400 Subject: [PATCH] Change grafdiggers cage to use continuous rule modifying effect for 1st effect --- .../src/mage/sets/darkascension/GrafdiggersCage.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Mage.Sets/src/mage/sets/darkascension/GrafdiggersCage.java b/Mage.Sets/src/mage/sets/darkascension/GrafdiggersCage.java index dd3aa49b39..28dbb0a656 100644 --- a/Mage.Sets/src/mage/sets/darkascension/GrafdiggersCage.java +++ b/Mage.Sets/src/mage/sets/darkascension/GrafdiggersCage.java @@ -71,7 +71,7 @@ public class GrafdiggersCage extends CardImpl { } } -class GrafdiggersCageEffect extends ReplacementEffectImpl { +class GrafdiggersCageEffect extends ContinuousRuleModifiyingEffectImpl { public GrafdiggersCageEffect() { super(Duration.WhileOnBattlefield, Outcome.Benefit); @@ -92,15 +92,10 @@ class GrafdiggersCageEffect extends ReplacementEffectImpl { return true; } - @Override - public boolean replaceEvent(GameEvent event, Ability source, Game game) { - return true; - } - @Override public boolean applies(GameEvent event, Ability source, Game game) { if (event instanceof ZoneChangeEvent) { - ZoneChangeEvent zEvent = (ZoneChangeEvent)event; + ZoneChangeEvent zEvent = (ZoneChangeEvent) event; if (zEvent.getToZone() == Zone.BATTLEFIELD && (zEvent.getFromZone() == Zone.GRAVEYARD || zEvent.getFromZone() == Zone.LIBRARY)) { Card card = game.getCard(zEvent.getTargetId()); if (card != null && card.getCardType().contains(CardType.CREATURE)) {