@Override public boolean applies(GameEvent event, Ability source, Game game) { MageObject mageObject = game.getObject(event.getSourceId()); return mageObject != null && mageObject.isLand(); } }
@Override public boolean applies(GameEvent event, Ability source, Game game) { MageObject mageObject = game.getObject(event.getSourceId()); return mageObject != null && mageObject.isLand(); } }
@Override public boolean applies(GameEvent event, Ability source, Game game) { MageObject mageObject = game.getObject(event.getSourceId()); return mageObject != null && mageObject.isLand(); } }
@Override public boolean apply(Game game, Ability source) { MageObject object = game.getObject(source.getSourceId()); return object != null && !object.isLand(); } }
@Override public boolean apply(Game game, Ability source) { MageObject object = game.getObject(source.getSourceId()); return object != null && !object.isLand() && object.getConvertedManaCost() <= counters; } }
@Override public boolean applies(GameEvent event, Ability source, Game game) { MageObject mageObject = game.getObject(event.getSourceId()); ManaEvent manaEvent = (ManaEvent) event; Mana mana = manaEvent.getMana(); return mageObject != null && mageObject.isLand() && mana.count() > 1; } }
default boolean isPermanent() { return isCreature() || isArtifact() || isPlaneswalker() || isEnchantment() || isLand(); }
@Override public boolean applies(GameEvent event, Ability source, Game game) { MageObject mageObject = game.getObject(event.getSourceId()); if (mageObject != null && mageObject.isLand()) { Permanent land = game.getPermanent(event.getSourceId()); return land != null && filter.match(land, game); } return false; } }
@Override public boolean applies(GameEvent event, Ability source, Game game) { MageObject mageObject = game.getObject(event.getSourceId()); if (mageObject != null && mageObject.isLand()) { Permanent land = game.getPermanent(event.getSourceId()); return land != null && filter.match(land, game); } return false; } }
@Override public boolean applies(GameEvent event, Ability source, Game game) { MageObject mageObject = game.getObject(event.getSourceId()); if (mageObject != null && mageObject.isLand()) { Permanent land = game.getPermanent(event.getSourceId()); return land != null && filter.match(land, game); } return false; } }
@Override public boolean applies(GameEvent event, Ability source, Game game) { MageObject mageObject = game.getObject(event.getSourceId()); if (mageObject != null && mageObject.isLand()) { Permanent land = game.getPermanent(event.getSourceId()); return land != null && filter.match(land, game); } return false; } }
@Override public boolean applies(GameEvent event, Ability source, Game game) { MageObject mageObject = game.getObject(event.getSourceId()); if (mageObject != null && mageObject.isLand()) { Permanent land = game.getPermanent(event.getSourceId()); return land != null && filter.match(land, game); } return false; } }
@Override public boolean apply(StackObject input, Game game) { if (input instanceof StackAbility && ((StackAbility) input).getAbilityType() == AbilityType.ACTIVATED) { MageObject sourceObject = ((StackAbility) input).getSourceObject(game); if (sourceObject != null) { return (sourceObject.isArtifact() || sourceObject.isEnchantment() || sourceObject.isCreature() || sourceObject.isLand()); } } return false; } }
@Override public boolean checkTrigger(GameEvent event, Game game) { StackAbility stackAbility = (StackAbility) game.getStack().getStackObject(event.getSourceId()); if (stackAbility != null && stackAbility.getAbilityType() == AbilityType.ACTIVATED && game.getOpponents(this.getControllerId()).contains(stackAbility.getControllerId())) { MageObject abilitySourceObject = stackAbility.getSourceObject(game); return abilitySourceObject != null && (abilitySourceObject.isLand() || abilitySourceObject.isCreature()); } return false; }
if (userData.isUseFirstManaAbility() && object instanceof Permanent && object.isLand()) { ActivatedAbility ability = abilities.values().iterator().next(); if (ability instanceof ActivatedManaAbilityImpl) {
if (object.isLand()) { for (Ability ability2 : object.getAbilities().copy()) { if (ability2 instanceof PlayLandAbility) {