forked from External/mage
[FDN] Implement Claws Out
This commit is contained in:
parent
545aed84b3
commit
a76e90a957
2 changed files with 49 additions and 0 deletions
48
Mage.Sets/src/mage/cards/c/ClawsOut.java
Normal file
48
Mage.Sets/src/mage/cards/c/ClawsOut.java
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.effects.common.cost.SpellCostReductionForEachSourceEffect;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.abilities.hint.ValueHint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ClawsOut extends CardImpl {
|
||||
|
||||
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(new FilterControlledPermanent(SubType.CAT));
|
||||
private static final Hint hint = new ValueHint("Cats you control", xValue);
|
||||
|
||||
public ClawsOut(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{W}{W}");
|
||||
|
||||
// This spell costs {1} less to cast for each Cat you control.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.ALL, new SpellCostReductionForEachSourceEffect(1, xValue)
|
||||
).addHint(hint));
|
||||
|
||||
// Creatures you control get +2/+2 until end of turn.
|
||||
this.getSpellAbility().addEffect(new BoostControlledEffect(2, 2, Duration.EndOfTurn));
|
||||
}
|
||||
|
||||
private ClawsOut(final ClawsOut card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ClawsOut copy() {
|
||||
return new ClawsOut(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -58,6 +58,7 @@ public final class Foundations extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Charming Prince", 568, Rarity.RARE, mage.cards.c.CharmingPrince.class));
|
||||
cards.add(new SetCardInfo("Chart a Course", 586, Rarity.UNCOMMON, mage.cards.c.ChartACourse.class));
|
||||
cards.add(new SetCardInfo("Circuitous Route", 635, Rarity.UNCOMMON, mage.cards.c.CircuitousRoute.class));
|
||||
cards.add(new SetCardInfo("Claws Out", 6, Rarity.UNCOMMON, mage.cards.c.ClawsOut.class));
|
||||
cards.add(new SetCardInfo("Clinquant Skymage", 33, Rarity.UNCOMMON, mage.cards.c.ClinquantSkymage.class));
|
||||
cards.add(new SetCardInfo("Cloudblazer", 653, Rarity.UNCOMMON, mage.cards.c.Cloudblazer.class));
|
||||
cards.add(new SetCardInfo("Confiscate", 709, Rarity.UNCOMMON, mage.cards.c.Confiscate.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue