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 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() {
|
||||||
|
|
Loading…
Reference in a new issue