* Mystic Enforcer - Fixed that it did not get Flying from the threshold ability.

This commit is contained in:
LevelX2 2015-09-13 21:17:27 +02:00
parent 57e69a0fcc
commit 47bb1cb9a1

View file

@ -34,7 +34,10 @@ import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.common.CardsInControllerGraveCondition; import mage.abilities.condition.common.CardsInControllerGraveCondition;
import mage.abilities.decorator.ConditionalContinuousEffect; import mage.abilities.decorator.ConditionalContinuousEffect;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.continuous.BoostSourceEffect; import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.ProtectionAbility; import mage.abilities.keyword.ProtectionAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.constants.CardType; import mage.constants.CardType;
@ -72,10 +75,13 @@ public class MysticEnforcer extends CardImpl {
Ability thresholdAbility = new SimpleStaticAbility( Ability thresholdAbility = new SimpleStaticAbility(
Zone.BATTLEFIELD, Zone.BATTLEFIELD,
new ConditionalContinuousEffect( new ConditionalContinuousEffect(
new BoostSourceEffect(3, 3, Duration.WhileOnBattlefield), new BoostSourceEffect(3, 3, Duration.WhileOnBattlefield),
new CardsInControllerGraveCondition(7), new CardsInControllerGraveCondition(7),
"<i>Threshold</i> - {this} gets +3/+3 as long as seven or more cards are in your graveyard" "<i>Threshold</i> - {this} gets +3/+3 as long as seven or more cards are in your graveyard"
)); ));
Effect effect = new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.WhileOnBattlefield);
effect.setText("and has flying");
thresholdAbility.addEffect(effect);
this.addAbility(thresholdAbility); this.addAbility(thresholdAbility);
} }