mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
[OTC] Implement Acquired Mutation
This commit is contained in:
parent
f8768ffa09
commit
5a94341e24
2 changed files with 58 additions and 0 deletions
57
Mage.Sets/src/mage/cards/a/AcquiredMutation.java
Normal file
57
Mage.Sets/src/mage/cards/a/AcquiredMutation.java
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksAttachedTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.abilities.effects.common.combat.GoadAttachedEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostEnchantedEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.keyword.EnchantAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.counters.CounterType;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class AcquiredMutation extends CardImpl {
|
||||
|
||||
public AcquiredMutation(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{R}");
|
||||
|
||||
this.subtype.add(SubType.AURA);
|
||||
|
||||
// Enchant creature
|
||||
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
||||
this.getSpellAbility().addTarget(auraTarget);
|
||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
|
||||
this.addAbility(new EnchantAbility(auraTarget));
|
||||
|
||||
// Enchanted creature gets +2/+2 and is goaded.
|
||||
Ability ability = new SimpleStaticAbility(new BoostEnchantedEffect(2, 2));
|
||||
ability.addEffect(new GoadAttachedEffect());
|
||||
this.addAbility(ability);
|
||||
|
||||
// Whenever enchanted creature attacks, defending player gets two rad counters.
|
||||
this.addAbility(new AttacksAttachedTriggeredAbility(
|
||||
new AddCountersTargetEffect(CounterType.RAD.createInstance(2))
|
||||
.setText("defending player gets two rad counters"),
|
||||
AttachmentType.AURA, false, SetTargetPointer.PLAYER
|
||||
));
|
||||
}
|
||||
|
||||
private AcquiredMutation(final AcquiredMutation card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AcquiredMutation copy() {
|
||||
return new AcquiredMutation(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -24,6 +24,7 @@ public final class Fallout extends ExpansionSet {
|
|||
super("Fallout", "PIP", ExpansionSet.buildDate(2024, 3, 8), SetType.SUPPLEMENTAL);
|
||||
|
||||
cards.add(new SetCardInfo("Abundant Growth", 194, Rarity.COMMON, mage.cards.a.AbundantGrowth.class));
|
||||
cards.add(new SetCardInfo("Acquired Mutation", 53, Rarity.UNCOMMON, mage.cards.a.AcquiredMutation.class));
|
||||
cards.add(new SetCardInfo("Agent Frank Horrigan", 89, Rarity.RARE, mage.cards.a.AgentFrankHorrigan.class));
|
||||
cards.add(new SetCardInfo("All That Glitters", 155, Rarity.COMMON, mage.cards.a.AllThatGlitters.class));
|
||||
cards.add(new SetCardInfo("Almost Perfect", 90, Rarity.RARE, mage.cards.a.AlmostPerfect.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue