1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-02-18 03:00:15 +00:00

[BRO] Implement Emergency Weld

This commit is contained in:
Evan Kranzler 2022-11-04 19:37:09 -04:00
parent e9ee9e8c2c
commit 5aefb00c73
2 changed files with 47 additions and 0 deletions
Mage.Sets/src/mage

View file

@ -0,0 +1,46 @@
package mage.cards.e;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.FilterCard;
import mage.filter.predicate.Predicates;
import mage.game.permanent.token.SoldierArtifactToken;
import mage.target.common.TargetCardInYourGraveyard;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class EmergencyWeld extends CardImpl {
private static final FilterCard filter = new FilterCard("artifact or creature card from your graveyard");
static {
filter.add(Predicates.or(
CardType.ARTIFACT.getPredicate(),
CardType.CREATURE.getPredicate()
));
}
public EmergencyWeld(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{B}");
// Return target artifact or creature card from your graveyard to your hand. Create a 1/1 colorless Soldier artifact creature token.
this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filter));
this.getSpellAbility().addEffect(new CreateTokenEffect(new SoldierArtifactToken()));
}
private EmergencyWeld(final EmergencyWeld card) {
super(card);
}
@Override
public EmergencyWeld copy() {
return new EmergencyWeld(this);
}
}

View file

@ -71,6 +71,7 @@ public final class TheBrothersWar extends ExpansionSet {
cards.add(new SetCardInfo("Draconic Destiny", 130, Rarity.MYTHIC, mage.cards.d.DraconicDestiny.class));
cards.add(new SetCardInfo("Drafna, Founder of Lat-Nam", 47, Rarity.RARE, mage.cards.d.DrafnaFounderOfLatNam.class));
cards.add(new SetCardInfo("Dwarven Forge-Chanter", 131, Rarity.COMMON, mage.cards.d.DwarvenForgeChanter.class));
cards.add(new SetCardInfo("Emergency Weld", 93, Rarity.COMMON, mage.cards.e.EmergencyWeld.class));
cards.add(new SetCardInfo("Energy Refractor", 234, Rarity.COMMON, mage.cards.e.EnergyRefractor.class));
cards.add(new SetCardInfo("Epic Confrontation", 176, Rarity.COMMON, mage.cards.e.EpicConfrontation.class));
cards.add(new SetCardInfo("Evangel of Synthesis", 209, Rarity.UNCOMMON, mage.cards.e.EvangelOfSynthesis.class));