forked from External/mage
[ICE] Implement Maddening Wind (#11439)
This commit is contained in:
parent
4977fea307
commit
44702779d9
2 changed files with 54 additions and 0 deletions
53
Mage.Sets/src/mage/cards/m/MaddeningWind.java
Normal file
53
Mage.Sets/src/mage/cards/m/MaddeningWind.java
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.constants.*;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.abilities.keyword.EnchantAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.keyword.CumulativeUpkeepAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Cguy7777
|
||||
*/
|
||||
public final class MaddeningWind extends CardImpl {
|
||||
|
||||
public MaddeningWind(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{G}");
|
||||
|
||||
this.subtype.add(SubType.AURA);
|
||||
|
||||
// Enchant creature
|
||||
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
||||
this.getSpellAbility().addTarget(auraTarget);
|
||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
|
||||
this.addAbility(new EnchantAbility(auraTarget));
|
||||
|
||||
// Cumulative upkeep {G}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{G}")));
|
||||
|
||||
// At the beginning of the upkeep of enchanted creature's controller, Maddening Wind deals 2 damage to that player.
|
||||
Effect effect = new DamageTargetEffect(2);
|
||||
effect.setText("{this} deals 2 damage to that player");
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, effect,
|
||||
TargetController.CONTROLLER_ATTACHED_TO, false, true));
|
||||
}
|
||||
|
||||
private MaddeningWind(final MaddeningWind card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MaddeningWind copy() {
|
||||
return new MaddeningWind(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -225,6 +225,7 @@ public final class IceAge extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Lim-Dul's Hex", 146, Rarity.UNCOMMON, mage.cards.l.LimDulsHex.class));
|
||||
cards.add(new SetCardInfo("Lost Order of Jarkeld", 43, Rarity.RARE, mage.cards.l.LostOrderOfJarkeld.class));
|
||||
cards.add(new SetCardInfo("Lure", 253, Rarity.UNCOMMON, mage.cards.l.Lure.class));
|
||||
cards.add(new SetCardInfo("Maddening Wind", 254, Rarity.UNCOMMON, mage.cards.m.MaddeningWind.class));
|
||||
cards.add(new SetCardInfo("Magus of the Unseen", 82, Rarity.RARE, mage.cards.m.MagusOfTheUnseen.class));
|
||||
cards.add(new SetCardInfo("Malachite Talisman", 328, Rarity.UNCOMMON, mage.cards.m.MalachiteTalisman.class));
|
||||
cards.add(new SetCardInfo("Marton Stromgald", 199, Rarity.RARE, mage.cards.m.MartonStromgald.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue