mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
[ZNR] Implemented Shatterskull Charger
This commit is contained in:
parent
6812b79700
commit
69a0e6f291
2 changed files with 76 additions and 0 deletions
75
Mage.Sets/src/mage/cards/s/ShatterskullCharger.java
Normal file
75
Mage.Sets/src/mage/cards/s/ShatterskullCharger.java
Normal file
|
@ -0,0 +1,75 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.InvertCondition;
|
||||
import mage.abilities.condition.common.KickedCondition;
|
||||
import mage.abilities.condition.common.SourceHasCounterCondition;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
import mage.abilities.effects.common.ReturnToHandSourceEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.abilities.keyword.KickerAbility;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.counters.CounterType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ShatterskullCharger extends CardImpl {
|
||||
|
||||
private static final Condition condition
|
||||
= new InvertCondition(new SourceHasCounterCondition(CounterType.P1P1, 1));
|
||||
|
||||
public ShatterskullCharger(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}{R}");
|
||||
|
||||
this.subtype.add(SubType.GIANT);
|
||||
this.subtype.add(SubType.WARRIOR);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Kicker {2}
|
||||
this.addAbility(new KickerAbility(new ManaCostsImpl<>("{2}")));
|
||||
|
||||
// Trample
|
||||
this.addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
|
||||
// If Shatterskull Charger was kicked, it enters the battlefield with a +1/+1 counter on it.
|
||||
this.addAbility(new EntersBattlefieldAbility(
|
||||
new AddCountersSourceEffect(CounterType.P1P1.createInstance()), KickedCondition.instance,
|
||||
"If {this} was kicked, it enters the battlefield with a +1/+1 counter on it.", ""
|
||||
));
|
||||
|
||||
// At the beginning of your end step, if Shatterskull Charger doesn't have a +1/+1 counter on it, return it to its owner's hand.
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
||||
new BeginningOfEndStepTriggeredAbility(
|
||||
new ReturnToHandSourceEffect(true),
|
||||
TargetController.YOU, false
|
||||
), condition, "At the beginning of your end step, " +
|
||||
"if {this} doesn't have a +1/+1 counter on it, return it to its owner's hand."
|
||||
));
|
||||
}
|
||||
|
||||
private ShatterskullCharger(final ShatterskullCharger card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ShatterskullCharger copy() {
|
||||
return new ShatterskullCharger(this);
|
||||
}
|
||||
}
|
|
@ -313,6 +313,7 @@ public final class ZendikarRising extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Sejiri Shelter", 37, Rarity.UNCOMMON, mage.cards.s.SejiriShelter.class));
|
||||
cards.add(new SetCardInfo("Shadow Stinger", 123, Rarity.UNCOMMON, mage.cards.s.ShadowStinger.class));
|
||||
cards.add(new SetCardInfo("Shadows' Verdict", 124, Rarity.RARE, mage.cards.s.ShadowsVerdict.class));
|
||||
cards.add(new SetCardInfo("Shatterskull Charger", 159, Rarity.RARE, mage.cards.s.ShatterskullCharger.class));
|
||||
cards.add(new SetCardInfo("Shatterskull Smashing", 161, Rarity.MYTHIC, mage.cards.s.ShatterskullSmashing.class));
|
||||
cards.add(new SetCardInfo("Shatterskull, the Hammer Pass", 161, Rarity.MYTHIC, mage.cards.s.ShatterskullTheHammerPass.class));
|
||||
cards.add(new SetCardInfo("Shell Shield", 79, Rarity.COMMON, mage.cards.s.ShellShield.class));
|
||||
|
|
Loading…
Reference in a new issue