mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Fixed to count only own lands
This commit is contained in:
parent
49396cea72
commit
cdf7365ff1
1 changed files with 7 additions and 2 deletions
|
@ -46,6 +46,7 @@ import mage.target.common.TargetCardInYourGraveyard;
|
|||
/**
|
||||
*
|
||||
* @author North
|
||||
* @author LevelX - changed to checkInterveningIfClause
|
||||
*/
|
||||
public class EmeriaTheSkyRuin extends CardImpl<EmeriaTheSkyRuin> {
|
||||
|
||||
|
@ -96,13 +97,17 @@ 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() {
|
||||
return "At the beginning of your upkeep, if you control seven or more Plains, you may return target creature card from your graveyard to the battlefield.";
|
||||
|
|
Loading…
Reference in a new issue