added Roc Egg and Bird token

master
beholder 2011-08-29 14:06:42 +02:00
parent 9cbe8e57e6
commit 62d8a8b888
4 changed files with 70 additions and 0 deletions

View File

@ -758,6 +758,20 @@ toughness=3
ability=defender
timing=main
>Roc Egg
image=http://magiccards.info/scans/en/m12/32.jpg
value=3
rarity=U
type=Creature
subtype=Bird
color=w
converted=3
cost={2}{W}
power=0
toughness=3
ability=defender
timing=main
>Skinrender
image=http://magiccards.info/scans/en/som/78.jpg
value=4

View File

@ -72,6 +72,7 @@ Voja.jpg;http://forums.mtgsalvation.com/attachment.php?attachmentid=20055&d=1143
Beast3.jpg;http://magiccards.info/extras/token/magic-2011/beast.jpg
Beast4.jpg;http://magiccards.info/extras/token/zendikar/beast.jpg
Beast8.jpg;http://magiccards.info/extras/token/shards-of-alara/beast.jpg
Bird.jpg;http://magiccards.info/extras/token/magic-2011/bird.jpg
Dragon4.jpg;http://magiccards.info/extras/token/shards-of-alara/dragon.jpg
Dragon5.jpg;http://magiccards.info/extras/token/worldwake/dragon.jpg
Eldrazi Spawn.jpg;http://magiccards.info/extras/token/rise-of-the-eldrazi/eldrazi-spawn-1.jpg

View File

@ -0,0 +1,39 @@
package magic.card;
import magic.data.TokenCardDefinitions;
import magic.model.MagicGame;
import magic.model.MagicLocationType;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicPlayTokenAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicGraveyardTriggerData;
import magic.model.trigger.MagicTrigger;
import magic.model.trigger.MagicTriggerType;
public class Roc_Egg {
public static final MagicTrigger T = new MagicTrigger(MagicTriggerType.WhenPutIntoGraveyard) {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final Object data) {
final MagicGraveyardTriggerData triggerData=(MagicGraveyardTriggerData)data;
final MagicPlayer player = (permanent != null) ? permanent.getController() : null;
return (MagicLocationType.Play == triggerData.fromLocation) ?
new MagicEvent(
permanent,
player,
new Object[]{player},
this,
player + " puts a 3/3 white Bird creature token with flying onto the battlefield.") :
null;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicPlayTokenAction((MagicPlayer)data[0],TokenCardDefinitions.BIRD_TOKEN_CARD));
}
};
}

View File

@ -211,6 +211,21 @@ public class TokenCardDefinitions {
}
};
public static final MagicCardDefinition BIRD_TOKEN_CARD=new MagicCardDefinition("Bird") {
public void initialize() {
setToken();
setValue(3);
addType(MagicType.Creature);
setSubTypes(new String[]{"Bird"});
setCost(MagicManaCost.ZERO);
setColor(MagicColor.White);
setColoredType();
setPower(3);
setToughness(3);
setAbility(MagicAbility.Flying);
}
};
public static final MagicCardDefinition APE_TOKEN_CARD=new MagicCardDefinition("Ape","Ape") {
public void initialize() {
setToken();
@ -431,6 +446,7 @@ public class TokenCardDefinitions {
BAT_TOKEN_CARD,
FAERIE_ROGUE_TOKEN_CARD,
GRIFFIN_TOKEN_CARD,
BIRD_TOKEN_CARD,
APE_TOKEN_CARD,
BEAST3_TOKEN_CARD,
BEAST4_TOKEN_CARD,