mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[NEC] fixed Myojin ETB effect
This commit is contained in:
parent
f115a8df3f
commit
8010ce50e4
3 changed files with 15 additions and 12 deletions
|
@ -5,7 +5,6 @@ import mage.abilities.common.EntersBattlefieldAbility;
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
import mage.abilities.condition.common.CastFromHandSourcePermanentCondition;
|
import mage.abilities.condition.common.CastFromHandSourcePermanentCondition;
|
||||||
import mage.abilities.costs.common.RemoveCountersSourceCost;
|
import mage.abilities.costs.common.RemoveCountersSourceCost;
|
||||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
|
||||||
import mage.abilities.dynamicvalue.DynamicValue;
|
import mage.abilities.dynamicvalue.DynamicValue;
|
||||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||||
import mage.abilities.effects.common.CreateTokenEffect;
|
import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
|
@ -20,6 +19,7 @@ import mage.constants.SuperType;
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
import mage.filter.StaticFilters;
|
import mage.filter.StaticFilters;
|
||||||
import mage.game.permanent.token.SpiritToken;
|
import mage.game.permanent.token.SpiritToken;
|
||||||
|
import mage.watchers.common.CastFromHandWatcher;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@ -40,10 +40,11 @@ public final class MyojinOfBloomingDawn extends CardImpl {
|
||||||
this.toughness = new MageInt(6);
|
this.toughness = new MageInt(6);
|
||||||
|
|
||||||
// Myojin of Blooming Dawn enters the battlefield with an indestructible counter on it if you cast it from your hand.
|
// Myojin of Blooming Dawn enters the battlefield with an indestructible counter on it if you cast it from your hand.
|
||||||
this.addAbility(new EntersBattlefieldAbility(new ConditionalOneShotEffect(
|
this.addAbility(new EntersBattlefieldAbility(
|
||||||
new AddCountersSourceEffect(CounterType.INDESTRUCTIBLE.createInstance()),
|
new AddCountersSourceEffect(CounterType.INDESTRUCTIBLE.createInstance()),
|
||||||
CastFromHandSourcePermanentCondition.instance, ""
|
CastFromHandSourcePermanentCondition.instance, null,
|
||||||
), "{this} enters the battlefield with an indestructible counter on it if you cast it from your hand"));
|
"with an indestructible counter on it if you cast it from your hand"
|
||||||
|
), new CastFromHandWatcher());
|
||||||
|
|
||||||
// Remove an indestructible counter from Myojin of Blooming Dawn: Create a 1/1 colorless Spirit creature token for each permanent you control.
|
// Remove an indestructible counter from Myojin of Blooming Dawn: Create a 1/1 colorless Spirit creature token for each permanent you control.
|
||||||
this.addAbility(new SimpleActivatedAbility(
|
this.addAbility(new SimpleActivatedAbility(
|
||||||
|
|
|
@ -6,7 +6,6 @@ import mage.abilities.common.EntersBattlefieldAbility;
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
import mage.abilities.condition.common.CastFromHandSourcePermanentCondition;
|
import mage.abilities.condition.common.CastFromHandSourcePermanentCondition;
|
||||||
import mage.abilities.costs.common.RemoveCountersSourceCost;
|
import mage.abilities.costs.common.RemoveCountersSourceCost;
|
||||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
|
||||||
import mage.abilities.effects.common.DamageTargetEffect;
|
import mage.abilities.effects.common.DamageTargetEffect;
|
||||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
@ -16,6 +15,7 @@ import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
import mage.target.common.TargetAnyTarget;
|
import mage.target.common.TargetAnyTarget;
|
||||||
|
import mage.watchers.common.CastFromHandWatcher;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@ -33,10 +33,11 @@ public final class MyojinOfRoaringBlades extends CardImpl {
|
||||||
this.toughness = new MageInt(4);
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
// Myojin of Roaring Blades enters the battlefield with an indestructible counter on it if you cast it from your hand.
|
// Myojin of Roaring Blades enters the battlefield with an indestructible counter on it if you cast it from your hand.
|
||||||
this.addAbility(new EntersBattlefieldAbility(new ConditionalOneShotEffect(
|
this.addAbility(new EntersBattlefieldAbility(
|
||||||
new AddCountersSourceEffect(CounterType.INDESTRUCTIBLE.createInstance()),
|
new AddCountersSourceEffect(CounterType.INDESTRUCTIBLE.createInstance()),
|
||||||
CastFromHandSourcePermanentCondition.instance, ""
|
CastFromHandSourcePermanentCondition.instance, null,
|
||||||
), "{this} enters the battlefield with an indestructible counter on it if you cast it from your hand"));
|
"with an indestructible counter on it if you cast it from your hand"
|
||||||
|
), new CastFromHandWatcher());
|
||||||
|
|
||||||
// Remove an indestructible counter from Myojin of Roaring Blades: It deals 7 damage to each of up to three targets.
|
// Remove an indestructible counter from Myojin of Roaring Blades: It deals 7 damage to each of up to three targets.
|
||||||
Ability ability = new SimpleActivatedAbility(
|
Ability ability = new SimpleActivatedAbility(
|
||||||
|
|
|
@ -6,7 +6,6 @@ import mage.abilities.common.EntersBattlefieldAbility;
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
import mage.abilities.condition.common.CastFromHandSourcePermanentCondition;
|
import mage.abilities.condition.common.CastFromHandSourcePermanentCondition;
|
||||||
import mage.abilities.costs.common.RemoveCountersSourceCost;
|
import mage.abilities.costs.common.RemoveCountersSourceCost;
|
||||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
|
||||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||||
import mage.abilities.effects.common.counter.DistributeCountersEffect;
|
import mage.abilities.effects.common.counter.DistributeCountersEffect;
|
||||||
|
@ -20,6 +19,7 @@ import mage.constants.SuperType;
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
import mage.filter.StaticFilters;
|
import mage.filter.StaticFilters;
|
||||||
import mage.target.common.TargetCreaturePermanentAmount;
|
import mage.target.common.TargetCreaturePermanentAmount;
|
||||||
|
import mage.watchers.common.CastFromHandWatcher;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@ -37,10 +37,11 @@ public final class MyojinOfToweringMight extends CardImpl {
|
||||||
this.toughness = new MageInt(8);
|
this.toughness = new MageInt(8);
|
||||||
|
|
||||||
// Myojin of Towering Might enters the battlefield with an indestructible counter on it if you cast it from your hand.
|
// Myojin of Towering Might enters the battlefield with an indestructible counter on it if you cast it from your hand.
|
||||||
this.addAbility(new EntersBattlefieldAbility(new ConditionalOneShotEffect(
|
this.addAbility(new EntersBattlefieldAbility(
|
||||||
new AddCountersSourceEffect(CounterType.INDESTRUCTIBLE.createInstance()),
|
new AddCountersSourceEffect(CounterType.INDESTRUCTIBLE.createInstance()),
|
||||||
CastFromHandSourcePermanentCondition.instance, ""
|
CastFromHandSourcePermanentCondition.instance, null,
|
||||||
), "{this} enters the battlefield with an indestructible counter on it if you cast it from your hand"));
|
"with an indestructible counter on it if you cast it from your hand"
|
||||||
|
), new CastFromHandWatcher());
|
||||||
|
|
||||||
// Remove an indestructible counter from Myojin of Towering Might: Distribute eight +1/+1 counters among any number of target creatures you control. They gain trample until end of turn.
|
// Remove an indestructible counter from Myojin of Towering Might: Distribute eight +1/+1 counters among any number of target creatures you control. They gain trample until end of turn.
|
||||||
Ability ability = new SimpleActivatedAbility(new DistributeCountersEffect(
|
Ability ability = new SimpleActivatedAbility(new DistributeCountersEffect(
|
||||||
|
|
Loading…
Reference in a new issue