mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
* Mystic Enforcer - Fixed that it did not get Flying from the threshold ability.
This commit is contained in:
parent
57e69a0fcc
commit
47bb1cb9a1
1 changed files with 9 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue