mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[BRC] Implement Machine God's Effigy
This commit is contained in:
parent
c7384ea80f
commit
e537df37ab
2 changed files with 63 additions and 0 deletions
62
Mage.Sets/src/mage/cards/m/MachineGodsEffigy.java
Normal file
62
Mage.Sets/src/mage/cards/m/MachineGodsEffigy.java
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.MageObject;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.EntersBattlefieldEffect;
|
||||
import mage.abilities.effects.common.CopyPermanentEffect;
|
||||
import mage.abilities.mana.BlueManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.util.functions.CopyApplier;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MachineGodsEffigy extends CardImpl {
|
||||
|
||||
public MachineGodsEffigy(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
|
||||
|
||||
// You may have Machine God's Effigy enter the battlefield as a copy of any creature on the battlefield, except it's an artifact and it has "{T}: Add {U}."
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.ALL,
|
||||
new EntersBattlefieldEffect(
|
||||
new CopyPermanentEffect(StaticFilters.FILTER_PERMANENT_CREATURE, new MachineGodsEffigyApplier())
|
||||
.setText("You may have {this} enter the battlefield as a copy of any creature " +
|
||||
"on the battlefield, except it's an artifact and it has \"{T}: Add {U}.\""),
|
||||
"", true
|
||||
)
|
||||
));
|
||||
|
||||
// {T}: Add {U}.
|
||||
this.addAbility(new BlueManaAbility());
|
||||
}
|
||||
|
||||
private MachineGodsEffigy(final MachineGodsEffigy card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MachineGodsEffigy copy() {
|
||||
return new MachineGodsEffigy(this);
|
||||
}
|
||||
}
|
||||
|
||||
class MachineGodsEffigyApplier extends CopyApplier {
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, MageObject blueprint, Ability source, UUID targetObjectId) {
|
||||
blueprint.retainAllArtifactSubTypes(null);
|
||||
blueprint.removeAllCardTypes(game);
|
||||
blueprint.addCardType(CardType.ARTIFACT);
|
||||
blueprint.getAbilities().add(new BlueManaAbility());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -89,6 +89,7 @@ public final class TheBrothersWarCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Liquimetal Torque", 145, Rarity.UNCOMMON, mage.cards.l.LiquimetalTorque.class));
|
||||
cards.add(new SetCardInfo("Lithoform Engine", 146, Rarity.MYTHIC, mage.cards.l.LithoformEngine.class));
|
||||
cards.add(new SetCardInfo("Losheel, Clockwork Scholar", 73, Rarity.RARE, mage.cards.l.LosheelClockworkScholar.class));
|
||||
cards.add(new SetCardInfo("Machine God's Effigy", 16, Rarity.RARE, mage.cards.m.MachineGodsEffigy.class));
|
||||
cards.add(new SetCardInfo("March of Progress", 8, Rarity.RARE, mage.cards.m.MarchOfProgress.class));
|
||||
cards.add(new SetCardInfo("Marionette Master", 109, Rarity.RARE, mage.cards.m.MarionetteMaster.class));
|
||||
cards.add(new SetCardInfo("Master Transmuter", 87, Rarity.RARE, mage.cards.m.MasterTransmuter.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue