mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
[DMU] Implemented Heroic Charge
This commit is contained in:
parent
eaf51b6699
commit
3ab2731128
2 changed files with 49 additions and 0 deletions
48
Mage.Sets/src/mage/cards/h/HeroicCharge.java
Normal file
48
Mage.Sets/src/mage/cards/h/HeroicCharge.java
Normal file
|
@ -0,0 +1,48 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.abilities.condition.common.KickedCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.AddContinuousEffectToGame;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
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.Duration;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class HeroicCharge extends CardImpl {
|
||||
|
||||
public HeroicCharge(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{W}{W}");
|
||||
|
||||
// Kicker {1}{R}
|
||||
this.addAbility(new KickerAbility("{1}{R}"));
|
||||
|
||||
// Creatures you control get +2/+1 until end of turn. If this spell was kicked, those creatures also gain trample until end of turn.
|
||||
this.getSpellAbility().addEffect(new BoostControlledEffect(2, 1, Duration.EndOfTurn));
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new AddContinuousEffectToGame(new GainAbilityControlledEffect(
|
||||
TrampleAbility.getInstance(), Duration.EndOfTurn,
|
||||
StaticFilters.FILTER_PERMANENT_CREATURE
|
||||
)), KickedCondition.ONCE, "If this spell was kicked, " +
|
||||
"those creatures also gain trample until end of turn."
|
||||
));
|
||||
}
|
||||
|
||||
private HeroicCharge(final HeroicCharge card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HeroicCharge copy() {
|
||||
return new HeroicCharge(this);
|
||||
}
|
||||
}
|
|
@ -99,6 +99,7 @@ public final class DominariaUnited extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Haunted Mire", 248, Rarity.COMMON, mage.cards.h.HauntedMire.class));
|
||||
cards.add(new SetCardInfo("Herd Migration", 165, Rarity.RARE, mage.cards.h.HerdMigration.class));
|
||||
cards.add(new SetCardInfo("Hero's Heirloom", 231, Rarity.UNCOMMON, mage.cards.h.HerosHeirloom.class));
|
||||
cards.add(new SetCardInfo("Heroic Charge", 20, Rarity.COMMON, mage.cards.h.HeroicCharge.class));
|
||||
cards.add(new SetCardInfo("Hexbane Tortoise", 166, Rarity.COMMON, mage.cards.h.HexbaneTortoise.class));
|
||||
cards.add(new SetCardInfo("Hurler Cyclops", 130, Rarity.UNCOMMON, mage.cards.h.HurlerCyclops.class));
|
||||
cards.add(new SetCardInfo("Hurloon Battle Hymn", 131, Rarity.UNCOMMON, mage.cards.h.HurloonBattleHymn.class));
|
||||
|
|
Loading…
Reference in a new issue