implement [EOE] Mechan Shieldmate

This commit is contained in:
Susucre 2025-07-18 19:08:03 +02:00
parent 582e1b02dc
commit 463cd3aae4
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,55 @@
package mage.cards.m;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.common.ArtifactEnteredUnderYourControlCondition;
import mage.abilities.decorator.ConditionalAsThoughEffect;
import mage.abilities.effects.common.combat.CanAttackAsThoughItDidntHaveDefenderSourceEffect;
import mage.abilities.hint.ConditionHint;
import mage.abilities.keyword.DefenderAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.watchers.common.ArtifactEnteredControllerWatcher;
import java.util.UUID;
/**
* @author Susucr
*/
public final class MechanShieldmate extends CardImpl {
public MechanShieldmate(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{1}{U}");
this.subtype.add(SubType.ROBOT);
this.subtype.add(SubType.SOLDIER);
this.power = new MageInt(3);
this.toughness = new MageInt(2);
// Defender
this.addAbility(DefenderAbility.getInstance());
// As long as an artifact entered the battlefield under your control this turn, this creature can attack as though it didn't have defender.
this.addAbility(new SimpleStaticAbility(
new ConditionalAsThoughEffect(
new CanAttackAsThoughItDidntHaveDefenderSourceEffect(Duration.WhileOnBattlefield),
ArtifactEnteredUnderYourControlCondition.instance
).setText("As long as an artifact entered the battlefield under your control this turn,"
+ "this creature can attack as though it didn't have defender")
).addHint(new ConditionHint(ArtifactEnteredUnderYourControlCondition.instance)),
new ArtifactEnteredControllerWatcher()
);
}
private MechanShieldmate(final MechanShieldmate card) {
super(card);
}
@Override
public MechanShieldmate copy() {
return new MechanShieldmate(this);
}
}

View file

@ -183,6 +183,7 @@ public final class EdgeOfEternities extends ExpansionSet {
cards.add(new SetCardInfo("Luxknight Breacher", 26, Rarity.COMMON, mage.cards.l.LuxknightBreacher.class));
cards.add(new SetCardInfo("Mechan Assembler", 63, Rarity.UNCOMMON, mage.cards.m.MechanAssembler.class));
cards.add(new SetCardInfo("Mechan Navigator", 64, Rarity.UNCOMMON, mage.cards.m.MechanNavigator.class));
cards.add(new SetCardInfo("Mechan Shieldmate", 65, Rarity.COMMON, mage.cards.m.MechanShieldmate.class));
cards.add(new SetCardInfo("Mechanozoa", 66, Rarity.COMMON, mage.cards.m.Mechanozoa.class));
cards.add(new SetCardInfo("Melded Moxite", 143, Rarity.COMMON, mage.cards.m.MeldedMoxite.class));
cards.add(new SetCardInfo("Meltstrider Eulogist", 197, Rarity.UNCOMMON, mage.cards.m.MeltstriderEulogist.class));