mirror of
https://github.com/correl/mage.git
synced 2025-03-26 05:15:04 -09:00
Implemented Ichthyomorphosis
This commit is contained in:
parent
1c851dc592
commit
a25311b21d
2 changed files with 57 additions and 0 deletions
Mage.Sets/src/mage
56
Mage.Sets/src/mage/cards/i/Ichthyomorphosis.java
Normal file
56
Mage.Sets/src/mage/cards/i/Ichthyomorphosis.java
Normal file
|
@ -0,0 +1,56 @@
|
|||
package mage.cards.i;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.abilities.effects.common.continuous.BecomesCreatureAttachedEffect;
|
||||
import mage.abilities.keyword.EnchantAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.permanent.token.custom.CreatureToken;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Ichthyomorphosis extends CardImpl {
|
||||
|
||||
public Ichthyomorphosis(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}");
|
||||
|
||||
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 loses all abilities and is a blue Fish with base power and toughness 0/1.
|
||||
Effect effect = new BecomesCreatureAttachedEffect(
|
||||
new CreatureToken(0, 1, "", SubType.FISH).withColor("U"),
|
||||
"Enchanted creature loses all abilities and is a blue Fish creature with base power and toughness 0/1",
|
||||
Duration.WhileOnBattlefield, BecomesCreatureAttachedEffect.LoseType.ALL
|
||||
);
|
||||
effect.setOutcome(Outcome.Detriment);
|
||||
this.addAbility(new SimpleStaticAbility(effect));
|
||||
}
|
||||
|
||||
private Ichthyomorphosis(final Ichthyomorphosis card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Ichthyomorphosis copy() {
|
||||
return new Ichthyomorphosis(this);
|
||||
}
|
||||
}
|
|
@ -71,6 +71,7 @@ public final class TherosBeyondDeath extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Haktos the Unscarred", 218, Rarity.RARE, mage.cards.h.HaktosTheUnscarred.class));
|
||||
cards.add(new SetCardInfo("Heliod, Sun-Crowned", 18, Rarity.MYTHIC, mage.cards.h.HeliodSunCrowned.class));
|
||||
cards.add(new SetCardInfo("Hero of the Winds", 23, Rarity.UNCOMMON, mage.cards.h.HeroOfTheWinds.class));
|
||||
cards.add(new SetCardInfo("Ichthyomorphosis", 51, Rarity.COMMON, mage.cards.i.Ichthyomorphosis.class));
|
||||
cards.add(new SetCardInfo("Idyllic Tutor", 24, Rarity.RARE, mage.cards.i.IdyllicTutor.class));
|
||||
cards.add(new SetCardInfo("Indomitable Will", 25, Rarity.COMMON, mage.cards.i.IndomitableWill.class));
|
||||
cards.add(new SetCardInfo("Inevitable End", 102, Rarity.UNCOMMON, mage.cards.i.InevitableEnd.class));
|
||||
|
|
Loading…
Add table
Reference in a new issue