added Moon Heron and Murder of Crows

master
beholder 2011-09-29 15:46:29 +02:00
parent b822089858
commit e9ead9c3a1
2 changed files with 71 additions and 0 deletions

View File

@ -4677,6 +4677,19 @@ converted=2
cost={1}{W}
timing=pump
>Moon Heron
image=http://magiccards.info/scans/en/isd/69.jpg
value=3
rarity=C
type=Creature
subtype=Spirit,Bird
color=u
converted=4
cost={3}{U}
pt=3/2
ability=flying
timing=main
>Morkrut Banshee
image=http://magiccards.info/scans/en/isd/110.jpg
value=4
@ -4688,3 +4701,16 @@ converted=5
cost={3}{B}{B}
pt=4/4
timing=main
>Murder of Crows
image=http://magiccards.info/scans/en/isd/70.jpg
value=4
rarity=U
type=Creature
subtype=Bird
color=u
converted=5
cost={3}{U}{U}
pt=4/4
ability=flying
timing=main

View File

@ -0,0 +1,45 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicDrawAction;
import magic.model.choice.MagicChoice;
import magic.model.choice.MagicSimpleMayChoice;
import magic.model.event.MagicDiscardEvent;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenOtherPutIntoGraveyardFromPlayTrigger;
public class Murder_of_Crows {
public static final MagicWhenOtherPutIntoGraveyardFromPlayTrigger T = new MagicWhenOtherPutIntoGraveyardFromPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
return (permanent != otherPermanent &&
otherPermanent.isCreature(game)) ?
new MagicEvent(
permanent,
permanent.getController(),
new MagicSimpleMayChoice(
"You may draw a card. If you do, discard a card.",
MagicSimpleMayChoice.DRAW_CARDS,
1,
MagicSimpleMayChoice.DEFAULT_NONE),
new Object[]{permanent,permanent.getController()},
this,
"You may$ draw a card. If you do, discard a card."):
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
if (MagicChoice.isYesChoice(choiceResults[0])) {
final MagicPlayer player=(MagicPlayer)data[1];
game.doAction(new MagicDrawAction(player,1));
game.addEvent(new MagicDiscardEvent((MagicPermanent)data[0],player,1,false));
}
}
};
}