Fixed to count only own lands

This commit is contained in:
LevelX 2011-12-13 21:12:58 +01:00
parent 49396cea72
commit cdf7365ff1

View file

@ -46,6 +46,7 @@ import mage.target.common.TargetCardInYourGraveyard;
/** /**
* *
* @author North * @author North
* @author LevelX - changed to checkInterveningIfClause
*/ */
public class EmeriaTheSkyRuin extends CardImpl<EmeriaTheSkyRuin> { public class EmeriaTheSkyRuin extends CardImpl<EmeriaTheSkyRuin> {
@ -96,12 +97,16 @@ class EmeriaTheSkyRuinTriggeredAbility extends TriggeredAbilityImpl<EmeriaTheSky
@Override @Override
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
if (event.getType() == GameEvent.EventType.UPKEEP_STEP_PRE && event.getPlayerId().equals(this.controllerId) if (event.getType() == GameEvent.EventType.UPKEEP_STEP_PRE && event.getPlayerId().equals(this.controllerId)) {
&& game.getBattlefield().count(filter, this.controllerId, game) > 6) {
return true; return true;
} }
return false; return false;
} }
@Override
public boolean checkInterveningIfClause(Game game) {
return game.getBattlefield().countAll(filter, this.controllerId) >= 7;
}
@Override @Override
public String getRule() { public String getRule() {