-
Notifications
You must be signed in to change notification settings - Fork 789
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ME2] Implement Goblin Ski Patrol (#13285)
- Loading branch information
Showing
4 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
package mage.cards.g; | ||
|
||
import java.util.UUID; | ||
import mage.MageInt; | ||
import mage.abilities.Ability; | ||
import mage.abilities.effects.Effect; | ||
import mage.abilities.common.ActivateOncePerGameActivatedAbility; | ||
import mage.abilities.common.delayed.AtTheBeginOfNextEndStepDelayedTriggeredAbility; | ||
import mage.abilities.costs.mana.ManaCostsImpl; | ||
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect; | ||
import mage.abilities.keyword.FlyingAbility; | ||
import mage.abilities.effects.common.CreateDelayedTriggeredAbilityEffect; | ||
import mage.abilities.effects.common.SacrificeSourceEffect; | ||
import mage.abilities.effects.common.continuous.BoostSourceEffect; | ||
import mage.abilities.condition.Condition; | ||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition; | ||
import mage.abilities.hint.ConditionHint; | ||
import mage.abilities.hint.Hint; | ||
import mage.filter.common.FilterControlledPermanent; | ||
import mage.constants.*; | ||
import mage.cards.CardImpl; | ||
import mage.cards.CardSetInfo; | ||
import mage.constants.CardType; | ||
import mage.constants.Duration; | ||
|
||
/** | ||
* | ||
* @author tiera3 - based on PyricSalamander, ArmorOfThorns, AkroanLineBreaker, RonomSerpent, GeneralsEnforcer, MildManneredLibrarian, BlazemireVerge | ||
*/ | ||
public final class GoblinSkiPatrol extends CardImpl { | ||
|
||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("a snow-covered Mountain"); | ||
|
||
static { | ||
filter.add(SubType.MOUNTAIN.getPredicate()); | ||
filter.add(SuperType.SNOW.getPredicate()); | ||
} | ||
|
||
private static final Condition condition = new PermanentsOnTheBattlefieldCondition(filter); | ||
private static final Hint hint = new ConditionHint(condition, "You control a snow-covered Mountain"); | ||
|
||
|
||
public GoblinSkiPatrol(UUID ownerId, CardSetInfo setInfo) { | ||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}"); | ||
|
||
this.subtype.add(SubType.GOBLIN); | ||
this.power = new MageInt(1); | ||
this.toughness = new MageInt(1); | ||
|
||
// {1}{R}: Goblin Ski Patrol gets +2/+0 and gains flying. Its controller sacrifices it at the beginning of the next end step. Activate only once and only if you control a snow Mountain. | ||
Effect effect = new BoostSourceEffect(2, 0, Duration.EndOfTurn); | ||
effect.setText("{this} gets +2/+0"); | ||
Ability ability = new ActivateOncePerGameActivatedAbility(effect, new ManaCostsImpl<>("{1}{R}"), condition); | ||
effect = new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn); | ||
effect.setText("and gains flying"); | ||
ability.addEffect(effect); | ||
ability.addEffect(new CreateDelayedTriggeredAbilityEffect( | ||
new AtTheBeginOfNextEndStepDelayedTriggeredAbility(new SacrificeSourceEffect(true)) | ||
).setText("Its controller sacrifices it at the beginning of the next end step.")); | ||
this.addAbility(ability); | ||
} | ||
|
||
private GoblinSkiPatrol(final GoblinSkiPatrol card) { | ||
super(card); | ||
} | ||
|
||
@Override | ||
public GoblinSkiPatrol copy() { | ||
return new GoblinSkiPatrol(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters