mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
[DMC] Implement The Reaver Cleaver (#9519)
This commit is contained in:
parent
9ffae2c1f2
commit
dafd7f8e7c
2 changed files with 65 additions and 0 deletions
63
Mage.Sets/src/mage/cards/t/TheReaverCleaver.java
Normal file
63
Mage.Sets/src/mage/cards/t/TheReaverCleaver.java
Normal file
|
|
@ -0,0 +1,63 @@
|
||||||
|
package mage.cards.t;
|
||||||
|
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
||||||
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
|
import mage.abilities.costs.mana.GenericManaCost;
|
||||||
|
import mage.abilities.dynamicvalue.common.SavedDamageValue;
|
||||||
|
import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
|
import mage.abilities.effects.common.continuous.BoostEquippedEffect;
|
||||||
|
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
|
||||||
|
import mage.abilities.keyword.EquipAbility;
|
||||||
|
import mage.abilities.keyword.TrampleAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.*;
|
||||||
|
import mage.game.permanent.token.TreasureToken;
|
||||||
|
import mage.target.common.TargetControlledCreaturePermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author PurpleCrowbar
|
||||||
|
*/
|
||||||
|
public final class TheReaverCleaver extends CardImpl {
|
||||||
|
|
||||||
|
public TheReaverCleaver(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}{R}");
|
||||||
|
addSuperType(SuperType.LEGENDARY);
|
||||||
|
this.subtype.add(SubType.EQUIPMENT);
|
||||||
|
|
||||||
|
// Equipped creature gets +1/+1 and has trample and “Whenever this creature deals
|
||||||
|
// combat damage to a player or planeswalker, create that many Treasure tokens.”
|
||||||
|
Ability ability = new SimpleStaticAbility(new BoostEquippedEffect(1, 1));
|
||||||
|
ability.addEffect(new GainAbilityAttachedEffect(
|
||||||
|
TrampleAbility.getInstance(),
|
||||||
|
AttachmentType.EQUIPMENT,
|
||||||
|
Duration.WhileOnBattlefield,
|
||||||
|
"and has trample"
|
||||||
|
));
|
||||||
|
ability.addEffect(new GainAbilityAttachedEffect(
|
||||||
|
new DealsCombatDamageToAPlayerTriggeredAbility(
|
||||||
|
new CreateTokenEffect(new TreasureToken(), SavedDamageValue.MANY), false
|
||||||
|
).setOrPlaneswalker(true),
|
||||||
|
AttachmentType.EQUIPMENT,
|
||||||
|
Duration.WhileOnBattlefield,
|
||||||
|
" and \"Whenever this creature deals combat damage to a player or planeswalker, create that many Treasure tokens.\""
|
||||||
|
));
|
||||||
|
|
||||||
|
this.addAbility(ability);
|
||||||
|
|
||||||
|
// Equip 3
|
||||||
|
this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(3), new TargetControlledCreaturePermanent(), false));
|
||||||
|
}
|
||||||
|
|
||||||
|
private TheReaverCleaver(final TheReaverCleaver card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TheReaverCleaver copy() {
|
||||||
|
return new TheReaverCleaver(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -188,6 +188,8 @@ public final class DominariaUnitedCommander extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("The Circle of Loyalty", 98, Rarity.MYTHIC, mage.cards.t.TheCircleOfLoyalty.class));
|
cards.add(new SetCardInfo("The Circle of Loyalty", 98, Rarity.MYTHIC, mage.cards.t.TheCircleOfLoyalty.class));
|
||||||
cards.add(new SetCardInfo("The Mana Rig", 28, Rarity.MYTHIC, mage.cards.t.TheManaRig.class, NON_FULL_USE_VARIOUS));
|
cards.add(new SetCardInfo("The Mana Rig", 28, Rarity.MYTHIC, mage.cards.t.TheManaRig.class, NON_FULL_USE_VARIOUS));
|
||||||
cards.add(new SetCardInfo("The Mana Rig", 80, Rarity.MYTHIC, mage.cards.t.TheManaRig.class, NON_FULL_USE_VARIOUS));
|
cards.add(new SetCardInfo("The Mana Rig", 80, Rarity.MYTHIC, mage.cards.t.TheManaRig.class, NON_FULL_USE_VARIOUS));
|
||||||
|
cards.add(new SetCardInfo("The Reaver Cleaver", 8, Rarity.RARE, mage.cards.t.TheReaverCleaver.class, NON_FULL_USE_VARIOUS));
|
||||||
|
cards.add(new SetCardInfo("The Reaver Cleaver", 84, Rarity.RARE, mage.cards.t.TheReaverCleaver.class, NON_FULL_USE_VARIOUS));
|
||||||
cards.add(new SetCardInfo("Thrill of Possibility", 127, Rarity.COMMON, mage.cards.t.ThrillOfPossibility.class));
|
cards.add(new SetCardInfo("Thrill of Possibility", 127, Rarity.COMMON, mage.cards.t.ThrillOfPossibility.class));
|
||||||
cards.add(new SetCardInfo("Time Wipe", 173, Rarity.RARE, mage.cards.t.TimeWipe.class));
|
cards.add(new SetCardInfo("Time Wipe", 173, Rarity.RARE, mage.cards.t.TimeWipe.class));
|
||||||
cards.add(new SetCardInfo("Transguild Courier", 194, Rarity.UNCOMMON, mage.cards.t.TransguildCourier.class));
|
cards.add(new SetCardInfo("Transguild Courier", 194, Rarity.UNCOMMON, mage.cards.t.TransguildCourier.class));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue