forked from External/mage
[LTC] Implement Legolas's Quick Reflexes (#11215)
This commit is contained in:
parent
351654cadc
commit
8966d06479
2 changed files with 66 additions and 0 deletions
65
Mage.Sets/src/mage/cards/l/LegolassQuickReflexes.java
Normal file
65
Mage.Sets/src/mage/cards/l/LegolassQuickReflexes.java
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
package mage.cards.l;
|
||||
|
||||
import mage.abilities.TriggeredAbility;
|
||||
import mage.abilities.common.BecomesTappedSourceTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.UntapTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.keyword.HexproofAbility;
|
||||
import mage.abilities.keyword.ReachAbility;
|
||||
import mage.abilities.keyword.SplitSecondAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class LegolassQuickReflexes extends CardImpl {
|
||||
|
||||
private static final DynamicValue xValue = new SourcePermanentPowerCount();
|
||||
|
||||
public LegolassQuickReflexes(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{G}");
|
||||
|
||||
// Split second
|
||||
this.addAbility(new SplitSecondAbility());
|
||||
|
||||
// Untap target creature. Until end of turn, it gains hexproof, reach, and "Whenever this creature becomes tapped, it deals damage equal to its power to up to one target creature."
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addEffect(new UntapTargetEffect());
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(
|
||||
HexproofAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("Until end of turn, it gains hexproof"));
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(
|
||||
ReachAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText(", reach"));
|
||||
|
||||
TriggeredAbility trigger = new BecomesTappedSourceTriggeredAbility(
|
||||
new DamageTargetEffect(xValue)
|
||||
.setText("it deals damage equal to its power to up to one target creature"),
|
||||
false
|
||||
);
|
||||
trigger.addTarget(new TargetCreaturePermanent(0, 1));
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(
|
||||
trigger, Duration.EndOfTurn
|
||||
).setText(", and \"Whenever this creature becomes tapped, "
|
||||
+ "it deals damage equal to its power to up to one target creature.\""));
|
||||
}
|
||||
|
||||
private LegolassQuickReflexes(final LegolassQuickReflexes card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LegolassQuickReflexes copy() {
|
||||
return new LegolassQuickReflexes(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -166,6 +166,7 @@ public final class TalesOfMiddleEarthCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Languish", 202, Rarity.RARE, mage.cards.l.Languish.class));
|
||||
cards.add(new SetCardInfo("Learn from the Past", 192, Rarity.UNCOMMON, mage.cards.l.LearnFromThePast.class));
|
||||
cards.add(new SetCardInfo("Legolas Greenleaf", 40, Rarity.RARE, mage.cards.l.LegolasGreenleaf.class));
|
||||
cards.add(new SetCardInfo("Legolas's Quick Reflexes", 493, Rarity.RARE, mage.cards.l.LegolassQuickReflexes.class));
|
||||
cards.add(new SetCardInfo("Lidless Gaze", 59, Rarity.RARE, mage.cards.l.LidlessGaze.class));
|
||||
cards.add(new SetCardInfo("Lightning Greaves", 281, Rarity.UNCOMMON, mage.cards.l.LightningGreaves.class));
|
||||
cards.add(new SetCardInfo("Lignify", 252, Rarity.COMMON, mage.cards.l.Lignify.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue