From cdf7365ff1bbed96583d865df80dc59e79e930a0 Mon Sep 17 00:00:00 2001 From: LevelX Date: Tue, 13 Dec 2011 21:12:58 +0100 Subject: [PATCH] Fixed to count only own lands --- Mage.Sets/src/mage/sets/zendikar/EmeriaTheSkyRuin.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/zendikar/EmeriaTheSkyRuin.java b/Mage.Sets/src/mage/sets/zendikar/EmeriaTheSkyRuin.java index 33941c64dd..d9350f312e 100644 --- a/Mage.Sets/src/mage/sets/zendikar/EmeriaTheSkyRuin.java +++ b/Mage.Sets/src/mage/sets/zendikar/EmeriaTheSkyRuin.java @@ -46,6 +46,7 @@ import mage.target.common.TargetCardInYourGraveyard; /** * * @author North + * @author LevelX - changed to checkInterveningIfClause */ public class EmeriaTheSkyRuin extends CardImpl { @@ -96,12 +97,16 @@ class EmeriaTheSkyRuinTriggeredAbility extends TriggeredAbilityImpl 6) { + if (event.getType() == GameEvent.EventType.UPKEEP_STEP_PRE && event.getPlayerId().equals(this.controllerId)) { return true; } return false; } + + @Override + public boolean checkInterveningIfClause(Game game) { + return game.getBattlefield().countAll(filter, this.controllerId) >= 7; + } @Override public String getRule() {