mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
[SNC] Implemented Citizen's Crowbar
This commit is contained in:
parent
886cc015f7
commit
4127f64b06
3 changed files with 61 additions and 1 deletions
59
Mage.Sets/src/mage/cards/c/CitizensCrowbar.java
Normal file
59
Mage.Sets/src/mage/cards/c/CitizensCrowbar.java
Normal file
|
@ -0,0 +1,59 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.common.SacrificeAttachmentCost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.CreateTokenAttachSourceEffect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostEquippedEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityWithAttachmentEffect;
|
||||
import mage.abilities.keyword.EquipAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.permanent.token.CitizenGreenWhiteToken;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class CitizensCrowbar extends CardImpl {
|
||||
|
||||
public CitizensCrowbar(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{W}");
|
||||
|
||||
this.subtype.add(SubType.EQUIPMENT);
|
||||
|
||||
// When Citizen's Crowbar enters the battlefield, create a 1/1 green and white Citizen creature token, then attach Citizen's Crowbar to it.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(
|
||||
new CreateTokenAttachSourceEffect(new CitizenGreenWhiteToken())
|
||||
));
|
||||
|
||||
// Equipped creature gets +1/+1 and has "{W}, {T}, Sacrifice Citizen's Crowbar: Destroy target artifact or enchantment."
|
||||
Ability ability = new SimpleStaticAbility(new BoostEquippedEffect(1, 1));
|
||||
ability.addEffect(new GainAbilityWithAttachmentEffect(
|
||||
"and has \"{W}, {T}, Sacrifice {this}: Destroy target artifact or enchantment.\"",
|
||||
new DestroyTargetEffect(), new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT),
|
||||
new SacrificeAttachmentCost(), new ManaCostsImpl<>("{W}"), new TapSourceCost()
|
||||
));
|
||||
|
||||
// Equip {2}
|
||||
this.addAbility(new EquipAbility(2));
|
||||
}
|
||||
|
||||
private CitizensCrowbar(final CitizensCrowbar card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CitizensCrowbar copy() {
|
||||
return new CitizensCrowbar(this);
|
||||
}
|
||||
}
|
|
@ -27,7 +27,7 @@ public final class LeoninBola extends CardImpl {
|
|||
|
||||
// Equipped creature has "{tap}, Unattach Leonin Bola: Tap target creature."
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityWithAttachmentEffect(
|
||||
"equipped creature has \"{tap}, Unattach {this}: Tap target creature.\"",
|
||||
"equipped creature has \"{T}, Unattach {this}: Tap target creature.\"",
|
||||
new TapTargetEffect(), new TargetCreaturePermanent(), new UnattachCost(), new TapSourceCost()
|
||||
)));
|
||||
|
||||
|
|
|
@ -56,6 +56,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Cemetery Tampering", 69, Rarity.RARE, mage.cards.c.CemeteryTampering.class));
|
||||
cards.add(new SetCardInfo("Ceremonial Groundbreaker", 175, Rarity.UNCOMMON, mage.cards.c.CeremonialGroundbreaker.class));
|
||||
cards.add(new SetCardInfo("Chrome Cat", 236, Rarity.COMMON, mage.cards.c.ChromeCat.class));
|
||||
cards.add(new SetCardInfo("Citizen's Crowbar", 8, Rarity.UNCOMMON, mage.cards.c.CitizensCrowbar.class));
|
||||
cards.add(new SetCardInfo("Civil Servant", 176, Rarity.COMMON, mage.cards.c.CivilServant.class));
|
||||
cards.add(new SetCardInfo("Cormela, Glamour Thief", 177, Rarity.UNCOMMON, mage.cards.c.CormelaGlamourThief.class));
|
||||
cards.add(new SetCardInfo("Courier's Briefcase", 142, Rarity.UNCOMMON, mage.cards.c.CouriersBriefcase.class));
|
||||
|
|
Loading…
Reference in a new issue