mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Implemented Revenge of Ravens
This commit is contained in:
parent
537c48b204
commit
2c384b0d93
2 changed files with 42 additions and 0 deletions
41
Mage.Sets/src/mage/cards/r/RevengeOfRavens.java
Normal file
41
Mage.Sets/src/mage/cards/r/RevengeOfRavens.java
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue