mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
[PIP] Implement Well Rested (#11967)
This commit is contained in:
parent
76072d7c55
commit
57a1e9ae08
2 changed files with 63 additions and 0 deletions
61
Mage.Sets/src/mage/cards/w/WellRested.java
Normal file
61
Mage.Sets/src/mage/cards/w/WellRested.java
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
package mage.cards.w;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||||
|
import mage.abilities.effects.common.GainLifeEffect;
|
||||||
|
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
|
||||||
|
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||||
|
import mage.abilities.keyword.InspiredAbility;
|
||||||
|
import mage.constants.AttachmentType;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.counters.CounterType;
|
||||||
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
import mage.abilities.effects.common.AttachEffect;
|
||||||
|
import mage.constants.Outcome;
|
||||||
|
import mage.target.TargetPermanent;
|
||||||
|
import mage.abilities.keyword.EnchantAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Cguy7777
|
||||||
|
*/
|
||||||
|
public final class WellRested extends CardImpl {
|
||||||
|
|
||||||
|
public WellRested(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{G}");
|
||||||
|
|
||||||
|
this.subtype.add(SubType.AURA);
|
||||||
|
|
||||||
|
// Enchant creature
|
||||||
|
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
||||||
|
this.getSpellAbility().addTarget(auraTarget);
|
||||||
|
this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
|
||||||
|
this.addAbility(new EnchantAbility(auraTarget));
|
||||||
|
|
||||||
|
// Enchanted creature has "Whenever this creature becomes untapped, put two +1/+1 counters on it,
|
||||||
|
// then you gain 2 life and draw a card. This ability triggers only once each turn."
|
||||||
|
InspiredAbility gainedAbility = new InspiredAbility(
|
||||||
|
new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)), false, false);
|
||||||
|
gainedAbility.addEffect(new GainLifeEffect(2).concatBy(", then"));
|
||||||
|
gainedAbility.addEffect(new DrawCardSourceControllerEffect(1).concatBy("and"));
|
||||||
|
gainedAbility.setTriggersOnceEachTurn(true);
|
||||||
|
|
||||||
|
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(gainedAbility, AttachmentType.AURA)
|
||||||
|
.setText("Enchanted creature has \"Whenever this creature becomes untapped, " +
|
||||||
|
"put two +1/+1 counters on it, then you gain 2 life and draw a card. " +
|
||||||
|
"This ability triggers only once each turn.\"")));
|
||||||
|
}
|
||||||
|
|
||||||
|
private WellRested(final WellRested card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public WellRested copy() {
|
||||||
|
return new WellRested(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -279,6 +279,8 @@ public final class Fallout extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Watchful Radstag", 87, Rarity.RARE, mage.cards.w.WatchfulRadstag.class));
|
cards.add(new SetCardInfo("Watchful Radstag", 87, Rarity.RARE, mage.cards.w.WatchfulRadstag.class));
|
||||||
cards.add(new SetCardInfo("Wayfarer's Bauble", 252, Rarity.COMMON, mage.cards.w.WayfarersBauble.class));
|
cards.add(new SetCardInfo("Wayfarer's Bauble", 252, Rarity.COMMON, mage.cards.w.WayfarersBauble.class));
|
||||||
cards.add(new SetCardInfo("Wear // Tear", 222, Rarity.UNCOMMON, mage.cards.w.WearTear.class));
|
cards.add(new SetCardInfo("Wear // Tear", 222, Rarity.UNCOMMON, mage.cards.w.WearTear.class));
|
||||||
|
cards.add(new SetCardInfo("Well Rested", 88, Rarity.UNCOMMON, mage.cards.w.WellRested.class, NON_FULL_USE_VARIOUS));
|
||||||
|
cards.add(new SetCardInfo("Well Rested", 616, Rarity.UNCOMMON, mage.cards.w.WellRested.class, NON_FULL_USE_VARIOUS));
|
||||||
cards.add(new SetCardInfo("Whirler Rogue", 181, Rarity.UNCOMMON, mage.cards.w.WhirlerRogue.class));
|
cards.add(new SetCardInfo("Whirler Rogue", 181, Rarity.UNCOMMON, mage.cards.w.WhirlerRogue.class));
|
||||||
cards.add(new SetCardInfo("Wild Growth", 208, Rarity.COMMON, mage.cards.w.WildGrowth.class));
|
cards.add(new SetCardInfo("Wild Growth", 208, Rarity.COMMON, mage.cards.w.WildGrowth.class));
|
||||||
cards.add(new SetCardInfo("Windbrisk Heights", 315, Rarity.RARE, mage.cards.w.WindbriskHeights.class));
|
cards.add(new SetCardInfo("Windbrisk Heights", 315, Rarity.RARE, mage.cards.w.WindbriskHeights.class));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue