added Golem's Heart
parent
5dfc1ab877
commit
b3176af468
|
@ -11878,3 +11878,12 @@ type=Artifact
|
|||
converted=3
|
||||
cost={3}
|
||||
timing=artifact
|
||||
|
||||
>Golem's Heart
|
||||
image=http://magiccards.info/scans/en/som/161.jpg
|
||||
value=2
|
||||
rarity=U
|
||||
type=Artifact
|
||||
converted=2
|
||||
cost={2}
|
||||
timing=artifact
|
||||
|
|
|
@ -17,7 +17,6 @@ import magic.model.event.MagicActivationHints;
|
|||
import magic.model.event.MagicEvent;
|
||||
import magic.model.event.MagicPermanentActivation;
|
||||
import magic.model.event.MagicRemoveCounterEvent;
|
||||
import magic.model.event.MagicSacrificeEvent;
|
||||
import magic.model.event.MagicTiming;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
import magic.model.trigger.MagicWhenSpellIsPlayedTrigger;
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicChangeLifeAction;
|
||||
import magic.model.choice.MagicMayChoice;
|
||||
import magic.model.choice.MagicSimpleMayChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
import magic.model.trigger.MagicWhenSpellIsPlayedTrigger;
|
||||
|
||||
public class Golem_s_Heart {
|
||||
public static final MagicWhenSpellIsPlayedTrigger T = new MagicWhenSpellIsPlayedTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack data) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (data.getCardDefinition().isArtifact()) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new MagicSimpleMayChoice(
|
||||
player + " may gain 1 life.",
|
||||
MagicSimpleMayChoice.GAIN_LIFE,
|
||||
1,
|
||||
MagicSimpleMayChoice.DEFAULT_YES),
|
||||
new Object[]{player},
|
||||
this,
|
||||
player + " may$ gain 1 life."):
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
if (MagicMayChoice.isYesChoice(choiceResults[0])) {
|
||||
game.doAction(new MagicChangeLifeAction((MagicPlayer)data[0],1));
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
|
@ -63,7 +63,6 @@ public class TokenCardDefinitions {
|
|||
addType(MagicType.Creature);
|
||||
setSubTypes(new String[]{"Golem"});
|
||||
setCost(MagicManaCost.ZERO);
|
||||
//setColor(MagicColor.Green);
|
||||
setColoredType();
|
||||
setPowerToughness(3,3);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue