Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions Mage.Sets/src/mage/cards/i/IronManMasterOfMachines.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
package mage.cards.i;

import java.util.UUID;
import mage.MageInt;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledArtifactPermanent;
import mage.filter.predicate.mageobject.AnotherPredicate;
import mage.watchers.common.ArtifactEnteredControllerWatcher;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.common.ArtifactEnteredUnderYourControlCondition;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.abilities.hint.ConditionHint;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.VigilanceAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;

/**
*
* @author muz
*/
public final class IronManMasterOfMachines extends CardImpl {

private static final FilterPermanent filter = new FilterControlledArtifactPermanent("other artifact you control");

static {
filter.add(AnotherPredicate.instance);
}

private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter);

public IronManMasterOfMachines(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{2}{U}{R}");

this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.HERO);
this.power = new MageInt(1);
this.toughness = new MageInt(4);

// Flying
this.addAbility(FlyingAbility.getInstance());

// Vigilance
this.addAbility(VigilanceAbility.getInstance());

// Iron Man gets +1/+0 for each other artifact you control.
this.addAbility(new SimpleStaticAbility(new BoostSourceEffect(
xValue, StaticValue.get(0), Duration.WhileOnBattlefield
)));

// Whenever Iron Man attacks, if an artifact entered the battlefield under your control this turn, draw a card.
this.addAbility(
new AttacksTriggeredAbility(new DrawCardSourceControllerEffect(1))
.withInterveningIf(ArtifactEnteredUnderYourControlCondition.instance)
.addHint(new ConditionHint(ArtifactEnteredUnderYourControlCondition.instance)),
new ArtifactEnteredControllerWatcher()
);
}

private IronManMasterOfMachines(final IronManMasterOfMachines card) {
super(card);
}

@Override
public IronManMasterOfMachines copy() {
return new IronManMasterOfMachines(this);
}
}
1 change: 1 addition & 0 deletions Mage.Sets/src/mage/sets/MarvelSuperHeroes.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ private MarvelSuperHeroes() {
cards.add(new SetCardInfo("Captain America, Super-Soldier", 9, Rarity.MYTHIC, mage.cards.c.CaptainAmericaSuperSoldier.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Doctor Doom", 394, Rarity.MYTHIC, mage.cards.d.DoctorDoom.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Doctor Doom", 95, Rarity.MYTHIC, mage.cards.d.DoctorDoom.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Iron Man, Master of Machines", 216, Rarity.UNCOMMON, mage.cards.i.IronManMasterOfMachines.class));
cards.add(new SetCardInfo("Moon Girl and Devil Dinosaur", 223, Rarity.RARE, mage.cards.m.MoonGirlAndDevilDinosaur.class));
cards.add(new SetCardInfo("Namor the Sub-Mariner", 391, Rarity.MYTHIC, mage.cards.n.NamorTheSubMariner.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Namor the Sub-Mariner", 69, Rarity.MYTHIC, mage.cards.n.NamorTheSubMariner.class, NON_FULL_USE_VARIOUS));
Expand Down
1 change: 1 addition & 0 deletions Utils/mtg-cards-data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61779,6 +61779,7 @@ Thunderbolts Conspiracy|Marvel Super Heroes|117|R|{3}{B}|Enchantment|||Flash$Whe
Quicksilver, Brash Blur|Marvel Super Heroes|148|R|{R}|Legendary Creature - Mutant Hero|1|1|If Quicksilver, Brash Blur is in your opening hand, you may begin the game with him on the battlefield.$Haste$Power-up -- {4}{R}: Put a +1/+1 counter and a double strike counter on Quicksilver.|
World War Hulk|Marvel Super Heroes|197|R|{3}{G}{G}|Enchantment - Saga|||(As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.)$I -- The next red or green creature spell you cast this turn can be cast without paying its mana cost.$II -- Put three +1/+1 counters on target creature you control.$III -- Choose target creature you control. Until end of turn, double its power and toughness and it gains trample.|
The Coming of Galactus|Marvel Super Heroes|212|M|{2}{B}{B}{G}|Enchantment - Saga|||(As this Saga enters and after your draw step, add a lore counter. Sacrifice after IV.)$I -- Destroy up to one target nonland permanent.$II, III -- Each opponent loses 2 life.$IV -- Create Galactus, a legendary 16/16 black Elder alien creature token with flying, trample, and "Whenever Galactus attacks, destroy target land."|
Iron Man, Master of Machines|Marvel Super Heroes|216|U|{2}{U}{R}|Legendary Artifact Creature - Human Hero|1|4|Flying, vigilance$Iron Man gets +1/+0 for each other artifact you control.$Whenever Iron Man attacks, if an artifact entered the battlefield under your control this turn, draw a card.|
Moon Girl and Devil Dinosaur|Marvel Super Heroes|223|R|{1}{G}{U}|Legendary Creature - Human Dinosaur Hero|2|2|Whenever you draw your second card each turn, until end of turn, Moon Girl and Devil Dinosaur's base power and toughness become 6/6 and they gain trample.$Whenever an artifact you control enters, draw a card. This ability triggers only once each turn.|
World War Hulk|Marvel Super Heroes|304|R|{3}{G}{G}|Enchantment - Saga|||(As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.)$I -- The next red or green creature spell you cast this turn can be cast without paying its mana cost.$II -- Put three +1/+1 counters on target creature you control.$III -- Choose target creature you control. Until end of turn, double its power and toughness and it gains trample.|
The Coming of Galactus|Marvel Super Heroes|307|M|{2}{B}{B}{G}|Enchantment - Saga|||(As this Saga enters and after your draw step, add a lore counter. Sacrifice after IV.)$I -- Destroy up to one target nonland permanent.$II, III -- Each opponent loses 2 life.$IV -- Create Galactus, a legendary 16/16 black Elder alien creature token with flying, trample, and "Whenever Galactus attacks, destroy target land."|
Expand Down
Loading