forked from External/mage
[MH2] Implemented World-Weary
This commit is contained in:
parent
351f5456e3
commit
5f8592cf87
2 changed files with 53 additions and 0 deletions
52
Mage.Sets/src/mage/cards/w/WorldWeary.java
Normal file
52
Mage.Sets/src/mage/cards/w/WorldWeary.java
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
package mage.cards.w;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostEnchantedEffect;
|
||||
import mage.abilities.keyword.BasicLandcyclingAbility;
|
||||
import mage.abilities.keyword.EnchantAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class WorldWeary extends CardImpl {
|
||||
|
||||
public WorldWeary(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{B}{B}");
|
||||
|
||||
this.subtype.add(SubType.AURA);
|
||||
|
||||
// Enchant creature
|
||||
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
||||
this.getSpellAbility().addTarget(auraTarget);
|
||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
|
||||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||
this.addAbility(ability);
|
||||
|
||||
// Enchanted creature gets -4/-4.
|
||||
this.addAbility(new SimpleStaticAbility(new BoostEnchantedEffect(-4, -4)));
|
||||
|
||||
// Basic landcycling {1}{B}
|
||||
this.addAbility(new BasicLandcyclingAbility(new ManaCostsImpl<>("{1}{B}")));
|
||||
}
|
||||
|
||||
private WorldWeary(final WorldWeary card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WorldWeary copy() {
|
||||
return new WorldWeary(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -124,6 +124,7 @@ public final class ModernHorizons2 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Verdant Catacombs", 260, Rarity.RARE, mage.cards.v.VerdantCatacombs.class));
|
||||
cards.add(new SetCardInfo("Void Mirror", 242, Rarity.RARE, mage.cards.v.VoidMirror.class));
|
||||
cards.add(new SetCardInfo("Wonder", 271, Rarity.RARE, mage.cards.w.Wonder.class));
|
||||
cards.add(new SetCardInfo("World-Weary", 109, Rarity.COMMON, mage.cards.w.WorldWeary.class));
|
||||
cards.add(new SetCardInfo("Yusri, Fortune's Flame", 218, Rarity.RARE, mage.cards.y.YusriFortunesFlame.class));
|
||||
cards.add(new SetCardInfo("Zuran Orb", 300, Rarity.UNCOMMON, mage.cards.z.ZuranOrb.class));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue