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 LevelX - changed to checkInterveningIfClause
*/
public class EmeriaTheSkyRuin extends CardImpl<EmeriaTheSkyRuin> {
@ -96,12 +97,16 @@ class EmeriaTheSkyRuinTriggeredAbility extends TriggeredAbilityImpl<EmeriaTheSky
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getType() == GameEvent.EventType.UPKEEP_STEP_PRE && event.getPlayerId().equals(this.controllerId)
&& game.getBattlefield().count(filter, this.controllerId, game) > 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() {