1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-10 17:00:08 -09:00

Implemented Retributive Wand

This commit is contained in:
Evan Kranzler 2019-06-20 18:59:10 -04:00
parent f32f4525b3
commit ce42085c79
2 changed files with 47 additions and 0 deletions
Mage.Sets/src/mage

View file

@ -0,0 +1,46 @@
package mage.cards.r;
import mage.abilities.Ability;
import mage.abilities.common.PutIntoGraveFromBattlefieldSourceTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.common.TargetAnyTarget;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class RetributiveWand extends CardImpl {
public RetributiveWand(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
// {3}, {T}: Retributive Wand deals 1 damage to any target.
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(1), new GenericManaCost(3));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
// When Retributive Wand is put into a graveyard from the battlefield, it deals 5 damage to any target.
ability = new PutIntoGraveFromBattlefieldSourceTriggeredAbility(
new DamageTargetEffect(5, "it")
);
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
}
private RetributiveWand(final RetributiveWand card) {
super(card);
}
@Override
public RetributiveWand copy() {
return new RetributiveWand(this);
}
}

View file

@ -87,6 +87,7 @@ public final class CoreSet2020 extends ExpansionSet {
cards.add(new SetCardInfo("Raise the Alarm", 34, Rarity.COMMON, mage.cards.r.RaiseTheAlarm.class));
cards.add(new SetCardInfo("Reckless Air Strike", 154, Rarity.COMMON, mage.cards.r.RecklessAirStrike.class));
cards.add(new SetCardInfo("Renowned Weaponsmith", 72, Rarity.UNCOMMON, mage.cards.r.RenownedWeaponsmith.class));
cards.add(new SetCardInfo("Retributive Wand", 236, Rarity.UNCOMMON, mage.cards.r.RetributiveWand.class));
cards.add(new SetCardInfo("Rotting Regisaur", 111, Rarity.RARE, mage.cards.r.RottingRegisaur.class));
cards.add(new SetCardInfo("Rule of Law", 35, Rarity.UNCOMMON, mage.cards.r.RuleOfLaw.class));
cards.add(new SetCardInfo("Scholar of the Ages", 74, Rarity.UNCOMMON, mage.cards.s.ScholarOfTheAges.class));