added Golem token. added Golem Foundry
parent
ee2bdd30dc
commit
5dfc1ab877
|
@ -11869,3 +11869,12 @@ type=Artifact
|
||||||
converted=1
|
converted=1
|
||||||
cost={1}
|
cost={1}
|
||||||
timing=artifact
|
timing=artifact
|
||||||
|
|
||||||
|
>Golem Foundry
|
||||||
|
image=http://magiccards.info/scans/en/som/160.jpg
|
||||||
|
value=2
|
||||||
|
rarity=C
|
||||||
|
type=Artifact
|
||||||
|
converted=3
|
||||||
|
cost={3}
|
||||||
|
timing=artifact
|
||||||
|
|
|
@ -68,6 +68,7 @@ Ape.jpg;http://forums.mtgsalvation.com/attachment.php?attachmentid=42431&stc=1&d
|
||||||
Bat.jpg;http://img.photobucket.com/albums/v237/Xand0r/bat-token_guildpact_300.jpg
|
Bat.jpg;http://img.photobucket.com/albums/v237/Xand0r/bat-token_guildpact_300.jpg
|
||||||
Goblin1.jpg;http://img.photobucket.com/albums/v237/Xand0r/goblin-token_ravnica_300.jpg
|
Goblin1.jpg;http://img.photobucket.com/albums/v237/Xand0r/goblin-token_ravnica_300.jpg
|
||||||
Goblin2.jpg;http://forums.mtgsalvation.com/attachment.php?attachmentid=30596&d=1157620938
|
Goblin2.jpg;http://forums.mtgsalvation.com/attachment.php?attachmentid=30596&d=1157620938
|
||||||
|
Golem3.jpg;http://magiccards.info/extras/token/scars-of-mirrodin/golem.jpg
|
||||||
Griffin.jpg;http://i248.photobucket.com/albums/gg179/AC666AC/MTG/Griffinfull.jpg
|
Griffin.jpg;http://i248.photobucket.com/albums/gg179/AC666AC/MTG/Griffinfull.jpg
|
||||||
Insect1.jpg;http://magiccards.info/extras/token/scars-of-mirrodin/insect.jpg
|
Insect1.jpg;http://magiccards.info/extras/token/scars-of-mirrodin/insect.jpg
|
||||||
Voja.jpg;http://img.photobucket.com/albums/v237/Xand0r/voja-token_ravnica_300-2.jpg
|
Voja.jpg;http://img.photobucket.com/albums/v237/Xand0r/voja-token_ravnica_300-2.jpg
|
||||||
|
|
|
@ -2,20 +2,17 @@ package magic.card;
|
||||||
|
|
||||||
import magic.model.MagicCounterType;
|
import magic.model.MagicCounterType;
|
||||||
import magic.model.MagicGame;
|
import magic.model.MagicGame;
|
||||||
import magic.model.MagicManaCost;
|
|
||||||
import magic.model.MagicPayedCost;
|
import magic.model.MagicPayedCost;
|
||||||
import magic.model.MagicPermanent;
|
import magic.model.MagicPermanent;
|
||||||
import magic.model.MagicPlayer;
|
import magic.model.MagicPlayer;
|
||||||
import magic.model.MagicSource;
|
import magic.model.MagicSource;
|
||||||
import magic.model.action.MagicChangeCountersAction;
|
import magic.model.action.MagicChangeCountersAction;
|
||||||
import magic.model.action.MagicChangeLifeAction;
|
import magic.model.action.MagicChangeLifeAction;
|
||||||
import magic.model.action.MagicDrawAction;
|
|
||||||
import magic.model.choice.MagicMayChoice;
|
import magic.model.choice.MagicMayChoice;
|
||||||
import magic.model.choice.MagicSimpleMayChoice;
|
import magic.model.choice.MagicSimpleMayChoice;
|
||||||
import magic.model.condition.MagicCondition;
|
import magic.model.condition.MagicCondition;
|
||||||
import magic.model.event.MagicActivationHints;
|
import magic.model.event.MagicActivationHints;
|
||||||
import magic.model.event.MagicEvent;
|
import magic.model.event.MagicEvent;
|
||||||
import magic.model.event.MagicPayManaCostEvent;
|
|
||||||
import magic.model.event.MagicPermanentActivation;
|
import magic.model.event.MagicPermanentActivation;
|
||||||
import magic.model.event.MagicSacrificeEvent;
|
import magic.model.event.MagicSacrificeEvent;
|
||||||
import magic.model.event.MagicTapEvent;
|
import magic.model.event.MagicTapEvent;
|
||||||
|
|
|
@ -0,0 +1,86 @@
|
||||||
|
package magic.card;
|
||||||
|
|
||||||
|
import magic.data.TokenCardDefinitions;
|
||||||
|
import magic.model.MagicCard;
|
||||||
|
import magic.model.MagicCounterType;
|
||||||
|
import magic.model.MagicGame;
|
||||||
|
import magic.model.MagicPayedCost;
|
||||||
|
import magic.model.MagicPermanent;
|
||||||
|
import magic.model.MagicPlayer;
|
||||||
|
import magic.model.MagicSource;
|
||||||
|
import magic.model.action.MagicChangeCountersAction;
|
||||||
|
import magic.model.action.MagicPlayTokenAction;
|
||||||
|
import magic.model.choice.MagicMayChoice;
|
||||||
|
import magic.model.choice.MagicSimpleMayChoice;
|
||||||
|
import magic.model.condition.MagicCondition;
|
||||||
|
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;
|
||||||
|
|
||||||
|
public class Golem_Foundry {
|
||||||
|
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();
|
||||||
|
final MagicCard card = data.getCard();
|
||||||
|
return (card.getOwner() == player &&
|
||||||
|
data.getCardDefinition().isArtifact()) ?
|
||||||
|
new MagicEvent(
|
||||||
|
permanent,
|
||||||
|
player,
|
||||||
|
new MagicSimpleMayChoice(
|
||||||
|
"You may put a charge counter on " + permanent + ".",
|
||||||
|
MagicSimpleMayChoice.ADD_CHARGE_COUNTER,
|
||||||
|
1,
|
||||||
|
MagicSimpleMayChoice.DEFAULT_YES),
|
||||||
|
new Object[]{permanent},
|
||||||
|
this,
|
||||||
|
"You may$ put a charge counter on " + permanent + "."):
|
||||||
|
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 MagicChangeCountersAction((MagicPermanent)data[0],MagicCounterType.Charge,1,true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
public static final MagicPermanentActivation A = new MagicPermanentActivation(
|
||||||
|
new MagicCondition[]{MagicCondition.THREE_CHARGE_COUNTERS_CONDITION},
|
||||||
|
new MagicActivationHints(MagicTiming.Token),
|
||||||
|
"Token") {
|
||||||
|
@Override
|
||||||
|
public MagicEvent[] getCostEvent(final MagicSource source) {
|
||||||
|
return new MagicEvent[]{
|
||||||
|
new MagicRemoveCounterEvent((MagicPermanent)source,MagicCounterType.Charge,3)};
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
||||||
|
final MagicPlayer player = source.getController();
|
||||||
|
return new MagicEvent(
|
||||||
|
source,
|
||||||
|
player,
|
||||||
|
new Object[]{player},
|
||||||
|
this,
|
||||||
|
player + " puts a 3/3 colorless Golem artifact creature token onto the battlefield.");
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void executeEvent(
|
||||||
|
final MagicGame game,
|
||||||
|
final MagicEvent event,
|
||||||
|
final Object[] data,
|
||||||
|
final Object[] choiceResults) {
|
||||||
|
game.doAction(new MagicPlayTokenAction((MagicPlayer)data[0],TokenCardDefinitions.GOLEM3_ARTIFACT_TOKEN_CARD));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
|
@ -55,6 +55,20 @@ public class TokenCardDefinitions {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public static final MagicCardDefinition GOLEM3_ARTIFACT_TOKEN_CARD = new MagicCardDefinition("Golem","Golem3") {
|
||||||
|
public void initialize() {
|
||||||
|
setToken();
|
||||||
|
setValue(1);
|
||||||
|
addType(MagicType.Artifact);
|
||||||
|
addType(MagicType.Creature);
|
||||||
|
setSubTypes(new String[]{"Golem"});
|
||||||
|
setCost(MagicManaCost.ZERO);
|
||||||
|
//setColor(MagicColor.Green);
|
||||||
|
setColoredType();
|
||||||
|
setPowerToughness(3,3);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
public static final MagicCardDefinition INSECT1_TOKEN_CARD = new MagicCardDefinition("Insect","Insect1") {
|
public static final MagicCardDefinition INSECT1_TOKEN_CARD = new MagicCardDefinition("Insect","Insect1") {
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
setToken();
|
setToken();
|
||||||
|
@ -466,6 +480,7 @@ public class TokenCardDefinitions {
|
||||||
ANGEL4_TOKEN_CARD,
|
ANGEL4_TOKEN_CARD,
|
||||||
DRAGON4_TOKEN_CARD,
|
DRAGON4_TOKEN_CARD,
|
||||||
DRAGON5_TOKEN_CARD,
|
DRAGON5_TOKEN_CARD,
|
||||||
|
GOLEM3_ARTIFACT_TOKEN_CARD,
|
||||||
INSECT1_TOKEN_CARD,
|
INSECT1_TOKEN_CARD,
|
||||||
WORM_TOKEN_CARD,
|
WORM_TOKEN_CARD,
|
||||||
SAPROLING_TOKEN_CARD,
|
SAPROLING_TOKEN_CARD,
|
||||||
|
|
Loading…
Reference in New Issue