[CLU] Implement Commander Mustard

This commit is contained in:
theelk801 2023-12-07 18:31:26 -05:00
parent 513e47deca
commit 5915ac478f
3 changed files with 69 additions and 1 deletions

View file

@ -0,0 +1,67 @@
package mage.cards.c;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
import mage.abilities.keyword.HasteAbility;
import mage.abilities.keyword.TrampleAbility;
import mage.abilities.keyword.VigilanceAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.*;
import mage.filter.FilterPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class CommanderMustard extends CardImpl {
private static final FilterPermanent filter = new FilterPermanent(SubType.SOLDIER, "Soldiers");
public CommanderMustard(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{W}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.SOLDIER);
this.power = new MageInt(5);
this.toughness = new MageInt(5);
// Vigilance
this.addAbility(VigilanceAbility.getInstance());
// Other Soldiers you control have vigilance, trample, and haste.
Ability ability = new SimpleStaticAbility(new GainAbilityControlledEffect(
VigilanceAbility.getInstance(), Duration.WhileOnBattlefield, filter, true
));
ability.addEffect(new GainAbilityControlledEffect(
TrampleAbility.getInstance(), Duration.WhileOnBattlefield, filter, true
).setText(", trample"));
ability.addEffect(new GainAbilityControlledEffect(
HasteAbility.getInstance(), Duration.WhileOnBattlefield, filter, true
).setText(", and haste"));
this.addAbility(ability);
// {2}{R}{W}: Until end of turn, Soldiers you control gain "Whenever this creature attacks, it deals 1 damage to defending player."
this.addAbility(new SimpleActivatedAbility(new GainAbilityControlledEffect(new AttacksTriggeredAbility(
new DamageTargetEffect(1), false, "Whenever this creature attacks, " +
"it deals 1 damage to defending player.", SetTargetPointer.PLAYER
), Duration.WhileOnBattlefield, filter, true), new ManaCostsImpl<>("{2}{R}{W}")));
}
private CommanderMustard(final CommanderMustard card) {
super(card);
}
@Override
public CommanderMustard copy() {
return new CommanderMustard(this);
}
}

View file

@ -20,6 +20,7 @@ public final class RavnicaClueEdition extends ExpansionSet {
this.hasBasicLands = false; this.hasBasicLands = false;
this.hasBoosters = false; this.hasBoosters = false;
cards.add(new SetCardInfo("Commander Mustard", 6, Rarity.RARE, mage.cards.c.CommanderMustard.class));
cards.add(new SetCardInfo("Dining Room", 15, Rarity.UNCOMMON, mage.cards.d.DiningRoom.class)); cards.add(new SetCardInfo("Dining Room", 15, Rarity.UNCOMMON, mage.cards.d.DiningRoom.class));
cards.add(new SetCardInfo("Hallowed Fountain", 277, Rarity.RARE, mage.cards.h.HallowedFountain.class)); cards.add(new SetCardInfo("Hallowed Fountain", 277, Rarity.RARE, mage.cards.h.HallowedFountain.class));
cards.add(new SetCardInfo("Lead Pipe", 9, Rarity.UNCOMMON, mage.cards.l.LeadPipe.class)); cards.add(new SetCardInfo("Lead Pipe", 9, Rarity.UNCOMMON, mage.cards.l.LeadPipe.class));

View file

@ -51722,7 +51722,7 @@ Swamp|Murders at Karlov Manor|274|C||Basic Land - Swamp|||({T}: Add {B}.)|
Mountain|Murders at Karlov Manor|275|C||Basic Land - Mountain|||({T}: Add {R}.)| Mountain|Murders at Karlov Manor|275|C||Basic Land - Mountain|||({T}: Add {R}.)|
Forest|Murders at Karlov Manor|276|C||Basic Land - Forest|||({T}: Add {G}.)| Forest|Murders at Karlov Manor|276|C||Basic Land - Forest|||({T}: Add {G}.)|
Senator Peacock|Ravnica: Clue Edition|2|R|{3}{U}{U}|Legendary Creature - Human Advisor|3|4|Artifacts you control are Clues in addition to their other types and have "{2}, Sacrifice this artifact: Draw a card."$Whenever you sacrifice a Clue, target creature can't be blocked this turn.| Senator Peacock|Ravnica: Clue Edition|2|R|{3}{U}{U}|Legendary Creature - Human Advisor|3|4|Artifacts you control are Clues in addition to their other types and have "{2}, Sacrifice this artifact: Draw a card."$Whenever you sacrifice a Clue, target creature can't be blocked this turn.|
Commander Mustard|Ravnica: Clue Edition|6|R|{3}{R}{W}|Legendary Creature - Human Soldier|5|5|Vigilance$Other Soldiers you control have vigilance, trample, and haste.${2}{R}{W}: Until end of turn, Soldiers you control gain "Whenever this creature attacks, it deals 1 damage to defending player.| Commander Mustard|Ravnica: Clue Edition|6|R|{3}{R}{W}|Legendary Creature - Human Soldier|5|5|Vigilance$Other Soldiers you control have vigilance, trample, and haste.${2}{R}{W}: Until end of turn, Soldiers you control gain "Whenever this creature attacks, it deals 1 damage to defending player."|
Lead Pipe|Ravnica: Clue Edition|9|U|{B}|Artifact - Clue Equipment|||Equipped creature gets +2/+0.$Whenever equipped creature dies, each opponent loses 1 life.${2}, Sacrifice Lead Pipe: Draw a card.$Equip {2}| Lead Pipe|Ravnica: Clue Edition|9|U|{B}|Artifact - Clue Equipment|||Equipped creature gets +2/+0.$Whenever equipped creature dies, each opponent loses 1 life.${2}, Sacrifice Lead Pipe: Draw a card.$Equip {2}|
Dining Room|Ravnica: Clue Edition|15|U||Land|||Dining Room enters the battlefield tapped.${T}: Add {R} or {G}.${4}, {T}: Investigate.| Dining Room|Ravnica: Clue Edition|15|U||Land|||Dining Room enters the battlefield tapped.${T}: Add {R} or {G}.${4}, {T}: Investigate.|
Hallowed Fountain|Ravnica: Clue Edition|277|R||Land - Plains Island|||({T}: Add {W} or {U}.)$As Hallowed Fountain enters the battlefield, you may pay 2 life. If you don't, it enters the battlefield tapped.| Hallowed Fountain|Ravnica: Clue Edition|277|R||Land - Plains Island|||({T}: Add {W} or {U}.)$As Hallowed Fountain enters the battlefield, you may pay 2 life. If you don't, it enters the battlefield tapped.|