[NCC] Implemented Caldaia Guardian

This commit is contained in:
Evan Kranzler 2022-04-20 08:14:58 -04:00
parent 60a744183b
commit 794faa926b
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,56 @@
package mage.cards.c;
import mage.MageInt;
import mage.abilities.common.DiesThisOrAnotherCreatureTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.keyword.BlitzAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.ComparisonType;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.ManaValuePredicate;
import mage.game.permanent.token.CitizenGreenWhiteToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class CaldaiaGuardian extends CardImpl {
private static final FilterPermanent filter
= new FilterCreaturePermanent("creature you control with mana value 4 or greater");
static {
filter.add(new ManaValuePredicate(ComparisonType.MORE_THAN, 3));
}
public CaldaiaGuardian(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}");
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.SOLDIER);
this.power = new MageInt(4);
this.toughness = new MageInt(3);
// Whenever Caldaia Guardian or another creature you control with mana value 4 or greater dies, create two 1/1 green and white Citizen creature tokens.
this.addAbility(new DiesThisOrAnotherCreatureTriggeredAbility(
new CreateTokenEffect(new CitizenGreenWhiteToken(), 2), false, filter
));
// Blitz {2}{G}
this.addAbility(new BlitzAbility("{2}{G}"));
}
private CaldaiaGuardian(final CaldaiaGuardian card) {
super(card);
}
@Override
public CaldaiaGuardian copy() {
return new CaldaiaGuardian(this);
}
}

View file

@ -59,6 +59,7 @@ public final class NewCapennaCommander extends ExpansionSet {
cards.add(new SetCardInfo("Boros Charm", 332, Rarity.UNCOMMON, mage.cards.b.BorosCharm.class));
cards.add(new SetCardInfo("Boxing Ring", 91, Rarity.RARE, mage.cards.b.BoxingRing.class));
cards.add(new SetCardInfo("Brokers Confluence", 68, Rarity.RARE, mage.cards.b.BrokersConfluence.class));
cards.add(new SetCardInfo("Caldaia Guardian", 56, Rarity.RARE, mage.cards.c.CaldaiaGuardian.class));
cards.add(new SetCardInfo("Call the Coppercoats", 195, Rarity.RARE, mage.cards.c.CallTheCoppercoats.class));
cards.add(new SetCardInfo("Call the Skybreaker", 333, Rarity.RARE, mage.cards.c.CallTheSkybreaker.class));
cards.add(new SetCardInfo("Camaraderie", 334, Rarity.RARE, mage.cards.c.Camaraderie.class));