mirror of
https://github.com/correl/mage.git
synced 2024-12-27 11:07:39 +00:00
[LTR] Implement Shortcut to Mushrooms
This commit is contained in:
parent
510806ad79
commit
b240b3cffe
2 changed files with 48 additions and 0 deletions
47
Mage.Sets/src/mage/cards/s/ShortcutToMushrooms.java
Normal file
47
Mage.Sets/src/mage/cards/s/ShortcutToMushrooms.java
Normal file
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.condition.common.RevoltCondition;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.effects.keyword.TheRingTemptsYouEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.counters.CounterType;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
import mage.watchers.common.RevoltWatcher;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ShortcutToMushrooms extends CardImpl {
|
||||
|
||||
public ShortcutToMushrooms(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{G}");
|
||||
|
||||
// When Shortcut to Mushrooms enters the battlefield, the Ring tempts you.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new TheRingTemptsYouEffect()));
|
||||
|
||||
// At the beginning of your end step, if a permanent you controlled left the battlefield this turn, put a +1/+1 counter on target creature you control.
|
||||
Ability ability = new BeginningOfEndStepTriggeredAbility(
|
||||
new AddCountersTargetEffect(CounterType.P1P1.createInstance()),
|
||||
TargetController.YOU, RevoltCondition.instance, false
|
||||
);
|
||||
ability.addTarget(new TargetControlledCreaturePermanent());
|
||||
this.addAbility(ability, new RevoltWatcher());
|
||||
}
|
||||
|
||||
private ShortcutToMushrooms(final ShortcutToMushrooms card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ShortcutToMushrooms copy() {
|
||||
return new ShortcutToMushrooms(this);
|
||||
}
|
||||
}
|
|
@ -113,6 +113,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Shadow Summoning", 226, Rarity.UNCOMMON, mage.cards.s.ShadowSummoning.class));
|
||||
cards.add(new SetCardInfo("Shelob's Ambush", 108, Rarity.COMMON, mage.cards.s.ShelobsAmbush.class));
|
||||
cards.add(new SetCardInfo("Shire Terrace", 261, Rarity.COMMON, mage.cards.s.ShireTerrace.class));
|
||||
cards.add(new SetCardInfo("Shortcut to Mushrooms", 187, Rarity.UNCOMMON, mage.cards.s.ShortcutToMushrooms.class));
|
||||
cards.add(new SetCardInfo("Smite the Deathless", 148, Rarity.COMMON, mage.cards.s.SmiteTheDeathless.class));
|
||||
cards.add(new SetCardInfo("Snarling Warg", 109, Rarity.COMMON, mage.cards.s.SnarlingWarg.class));
|
||||
cards.add(new SetCardInfo("Stern Scolding", 71, Rarity.UNCOMMON, mage.cards.s.SternScolding.class));
|
||||
|
|
Loading…
Reference in a new issue