diff --git a/Mage.Sets/src/mage/cards/w/WellRested.java b/Mage.Sets/src/mage/cards/w/WellRested.java new file mode 100644 index 00000000000..614569015af --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WellRested.java @@ -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); + } +} diff --git a/Mage.Sets/src/mage/sets/Fallout.java b/Mage.Sets/src/mage/sets/Fallout.java index 7e32d79caa5..11b770c4ea6 100644 --- a/Mage.Sets/src/mage/sets/Fallout.java +++ b/Mage.Sets/src/mage/sets/Fallout.java @@ -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("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("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("Wild Growth", 208, Rarity.COMMON, mage.cards.w.WildGrowth.class)); cards.add(new SetCardInfo("Windbrisk Heights", 315, Rarity.RARE, mage.cards.w.WindbriskHeights.class));