[NCC] Implemented Crash the Party

This commit is contained in:
Evan Kranzler 2022-04-20 08:20:26 -04:00
parent 794faa926b
commit 88ad8519f5
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,51 @@
package mage.cards.c;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.hint.Hint;
import mage.abilities.hint.ValueHint;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.predicate.permanent.TappedPredicate;
import mage.game.permanent.token.RhinoWarriorToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class CrashTheParty extends CardImpl {
private static final FilterPermanent filter
= new FilterControlledCreaturePermanent("tapped creature you control");
static {
filter.add(TappedPredicate.TAPPED);
}
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter, 1);
private static final Hint hint = new ValueHint("Tapped creatures you control", xValue);
public CrashTheParty(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{5}{G}");
// Create a tapped 4/4 green Rhino Warrior creature token for each tapped creature you control.
this.getSpellAbility().addEffect(new CreateTokenEffect(
new RhinoWarriorToken(), xValue, true, false
));
this.getSpellAbility().addHint(hint);
}
private CrashTheParty(final CrashTheParty card) {
super(card);
}
@Override
public CrashTheParty copy() {
return new CrashTheParty(this);
}
}

View file

@ -78,6 +78,7 @@ public final class NewCapennaCommander extends ExpansionSet {
cards.add(new SetCardInfo("Command Tower", 395, Rarity.COMMON, mage.cards.c.CommandTower.class));
cards.add(new SetCardInfo("Commander's Sphere", 363, Rarity.COMMON, mage.cards.c.CommandersSphere.class));
cards.add(new SetCardInfo("Commit // Memory", 216, Rarity.RARE, mage.cards.c.CommitMemory.class));
cards.add(new SetCardInfo("Crash the Party", 57, Rarity.RARE, mage.cards.c.CrashTheParty.class));
cards.add(new SetCardInfo("Creeping Tar Pit", 396, Rarity.RARE, mage.cards.c.CreepingTarPit.class));
cards.add(new SetCardInfo("Crumbling Necropolis", 397, Rarity.UNCOMMON, mage.cards.c.CrumblingNecropolis.class));
cards.add(new SetCardInfo("Crystalline Giant", 364, Rarity.RARE, mage.cards.c.CrystallineGiant.class));