mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[SNC] Implemented Cleanup Crew
This commit is contained in:
parent
4f5c6fe9d0
commit
a6e9b947b5
2 changed files with 58 additions and 0 deletions
57
Mage.Sets/src/mage/cards/c/CleanupCrew.java
Normal file
57
Mage.Sets/src/mage/cards/c/CleanupCrew.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.effects.common.ExileTargetEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetArtifactPermanent;
|
||||
import mage.target.common.TargetCardInGraveyard;
|
||||
import mage.target.common.TargetEnchantmentPermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
public final class CleanupCrew extends CardImpl {
|
||||
|
||||
public CleanupCrew(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}{G}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.CITIZEN);
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(6);
|
||||
|
||||
// When Cleanup Crew enters the battlefield, choose one —
|
||||
// • Destroy target artifact.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect());
|
||||
ability.addTarget(new TargetArtifactPermanent());
|
||||
|
||||
// • Destroy target enchantment.
|
||||
ability.addMode(new Mode(new DestroyTargetEffect()).addTarget(new TargetEnchantmentPermanent()));
|
||||
|
||||
// • Exile target card from a graveyard.
|
||||
ability.addMode(new Mode(new ExileTargetEffect()).addTarget(new TargetCardInGraveyard()));
|
||||
|
||||
// • You gain 4 life.
|
||||
ability.addMode(new Mode(new GainLifeEffect(4)));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private CleanupCrew(final CleanupCrew card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CleanupCrew copy() {
|
||||
return new CleanupCrew(this);
|
||||
}
|
||||
}
|
|
@ -64,6 +64,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Chrome Cat", 236, Rarity.COMMON, mage.cards.c.ChromeCat.class));
|
||||
cards.add(new SetCardInfo("Citizen's Crowbar", 8, Rarity.UNCOMMON, mage.cards.c.CitizensCrowbar.class));
|
||||
cards.add(new SetCardInfo("Civil Servant", 176, Rarity.COMMON, mage.cards.c.CivilServant.class));
|
||||
cards.add(new SetCardInfo("Cleanup Crew", 141, Rarity.UNCOMMON, mage.cards.c.CleanupCrew.class));
|
||||
cards.add(new SetCardInfo("Cormela, Glamour Thief", 177, Rarity.UNCOMMON, mage.cards.c.CormelaGlamourThief.class));
|
||||
cards.add(new SetCardInfo("Corpse Appraiser", 178, Rarity.UNCOMMON, mage.cards.c.CorpseAppraiser.class));
|
||||
cards.add(new SetCardInfo("Corrupt Court Official", 70, Rarity.COMMON, mage.cards.c.CorruptCourtOfficial.class));
|
||||
|
|
Loading…
Reference in a new issue