mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
[ONE] Implement Necrogen Communion
This commit is contained in:
parent
6a8692c575
commit
252255d182
2 changed files with 57 additions and 0 deletions
56
Mage.Sets/src/mage/cards/n/NecrogenCommunion.java
Normal file
56
Mage.Sets/src/mage/cards/n/NecrogenCommunion.java
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
package mage.cards.n;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.common.DiesAttachedTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.ReturnToBattlefieldUnderYourControlAttachedEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
|
||||
import mage.abilities.keyword.ToxicAbility;
|
||||
import mage.constants.AttachmentType;
|
||||
import mage.constants.SubType;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.constants.Outcome;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.abilities.keyword.EnchantAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class NecrogenCommunion extends CardImpl {
|
||||
|
||||
public NecrogenCommunion(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{B}");
|
||||
|
||||
this.subtype.add(SubType.AURA);
|
||||
|
||||
// Enchant creature you control
|
||||
TargetPermanent auraTarget = new TargetControlledCreaturePermanent();
|
||||
this.getSpellAbility().addTarget(auraTarget);
|
||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
|
||||
this.addAbility(new EnchantAbility(auraTarget));
|
||||
|
||||
// Enchanted creature has toxic 2.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
new GainAbilityAttachedEffect(new ToxicAbility(2), AttachmentType.EQUIPMENT)
|
||||
));
|
||||
|
||||
// When enchanted creature dies, return that card to the battlefield under your control.
|
||||
this.addAbility(new DiesAttachedTriggeredAbility(
|
||||
new ReturnToBattlefieldUnderYourControlAttachedEffect(), "enchanted creature"
|
||||
));
|
||||
}
|
||||
|
||||
private NecrogenCommunion(final NecrogenCommunion card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NecrogenCommunion copy() {
|
||||
return new NecrogenCommunion(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -74,6 +74,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Monument to Perfection", 233, Rarity.RARE, mage.cards.m.MonumentToPerfection.class));
|
||||
cards.add(new SetCardInfo("Mountain", 275, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Myr Convert", 234, Rarity.UNCOMMON, mage.cards.m.MyrConvert.class));
|
||||
cards.add(new SetCardInfo("Necrogen Communion", 99, Rarity.UNCOMMON, mage.cards.n.NecrogenCommunion.class));
|
||||
cards.add(new SetCardInfo("Nimraiser Paladin", 101, Rarity.UNCOMMON, mage.cards.n.NimraiserPaladin.class));
|
||||
cards.add(new SetCardInfo("Nissa, Ascended Animist", 175, Rarity.MYTHIC, mage.cards.n.NissaAscendedAnimist.class));
|
||||
cards.add(new SetCardInfo("Norn's Wellspring", 24, Rarity.RARE, mage.cards.n.NornsWellspring.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue