mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
[KHM] Implemented Squash
This commit is contained in:
parent
ec4ecd32af
commit
ba6fb254f6
2 changed files with 57 additions and 0 deletions
56
Mage.Sets/src/mage/cards/s/Squash.java
Normal file
56
Mage.Sets/src/mage/cards/s/Squash.java
Normal file
|
@ -0,0 +1,56 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.cost.SpellCostReductionSourceEffect;
|
||||
import mage.abilities.hint.ConditionHint;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.target.common.TargetCreatureOrPlaneswalker;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Squash extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledPermanent(
|
||||
SubType.GIANT, "you control a Giant"
|
||||
);
|
||||
private static final Condition condition
|
||||
= new PermanentsOnTheBattlefieldCondition(filter);
|
||||
private static final Hint hint = new ConditionHint(
|
||||
condition, "You control a Giant"
|
||||
);
|
||||
|
||||
public Squash(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{4}{R}");
|
||||
|
||||
// This spell costs {3} less to cast if you control a Giant.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.ALL, new SpellCostReductionSourceEffect(3, condition)
|
||||
).addHint(hint).setRuleAtTheTop(true));
|
||||
|
||||
// Squash deals 6 damage to target creature or planeswalker.
|
||||
this.getSpellAbility().addEffect(new DamageTargetEffect(6));
|
||||
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker());
|
||||
}
|
||||
|
||||
private Squash(final Squash card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Squash copy() {
|
||||
return new Squash(this);
|
||||
}
|
||||
}
|
|
@ -155,6 +155,7 @@ public final class Kaldheim extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Snowfield Sinkhole", 269, Rarity.COMMON, mage.cards.s.SnowfieldSinkhole.class));
|
||||
cards.add(new SetCardInfo("Spectral Steel", 30, Rarity.UNCOMMON, mage.cards.s.SpectralSteel.class));
|
||||
cards.add(new SetCardInfo("Spirit of the Aldergard", 195, Rarity.UNCOMMON, mage.cards.s.SpiritOfTheAldergard.class));
|
||||
cards.add(new SetCardInfo("Squash", 152, Rarity.COMMON, mage.cards.s.Squash.class));
|
||||
cards.add(new SetCardInfo("Starnheim Aspirant", 380, Rarity.UNCOMMON, mage.cards.s.StarnheimAspirant.class));
|
||||
cards.add(new SetCardInfo("Sulfurous Mire", 270, Rarity.COMMON, mage.cards.s.SulfurousMire.class));
|
||||
cards.add(new SetCardInfo("Surtland Elementalist", 375, Rarity.RARE, mage.cards.s.SurtlandElementalist.class));
|
||||
|
|
Loading…
Reference in a new issue