diff --git a/Mage.Sets/src/mage/cards/r/RevengeOfRavens.java b/Mage.Sets/src/mage/cards/r/RevengeOfRavens.java new file mode 100644 index 0000000000..e37f9a5ed6 --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RevengeOfRavens.java @@ -0,0 +1,41 @@ +package mage.cards.r; + +import mage.abilities.Ability; +import mage.abilities.common.AttacksAllTriggeredAbility; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.effects.common.LoseLifeTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SetTargetPointer; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class RevengeOfRavens extends CardImpl { + + public RevengeOfRavens(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{B}"); + + // Whenever a creature attacks you or a planeswalker you control, that creature's controller loses 1 life and you gain 1 life. + Ability ability = new AttacksAllTriggeredAbility( + new LoseLifeTargetEffect(1).setText("that creature's controller loses 1 life"), + false, StaticFilters.FILTER_PERMANENT_CREATURE, + SetTargetPointer.PLAYER, true, true + ); + ability.addEffect(new GainLifeEffect(1).concatBy("and")); + this.addAbility(ability); + } + + private RevengeOfRavens(final RevengeOfRavens card) { + super(card); + } + + @Override + public RevengeOfRavens copy() { + return new RevengeOfRavens(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ThroneOfEldraine.java b/Mage.Sets/src/mage/sets/ThroneOfEldraine.java index 6d4c62e596..ed28ee4a11 100644 --- a/Mage.Sets/src/mage/sets/ThroneOfEldraine.java +++ b/Mage.Sets/src/mage/sets/ThroneOfEldraine.java @@ -138,6 +138,7 @@ public final class ThroneOfEldraine extends ExpansionSet { cards.add(new SetCardInfo("Redcap Melee", 135, Rarity.UNCOMMON, mage.cards.r.RedcapMelee.class)); cards.add(new SetCardInfo("Redcap Raiders", 136, Rarity.COMMON, mage.cards.r.RedcapRaiders.class)); cards.add(new SetCardInfo("Return to Nature", 173, Rarity.COMMON, mage.cards.r.ReturnToNature.class)); + cards.add(new SetCardInfo("Revenge of Ravens", 104, Rarity.UNCOMMON, mage.cards.r.RevengeOfRavens.class)); cards.add(new SetCardInfo("Righteousness", 27, Rarity.UNCOMMON, mage.cards.r.Righteousness.class)); cards.add(new SetCardInfo("Robber of the Rich", 138, Rarity.MYTHIC, mage.cards.r.RobberOfTheRich.class)); cards.add(new SetCardInfo("Rosethorn Acolyte", 174, Rarity.COMMON, mage.cards.r.RosethornAcolyte.class));