added Windrider Eel

master
beholder 2011-09-03 12:02:46 +02:00
parent 54c1916cb1
commit 361ddde1aa
2 changed files with 51 additions and 0 deletions

View File

@ -4635,6 +4635,20 @@ toughness=1
ability=first strike
timing=main
>Windrider Eel
image=http://magiccards.info/scans/en/zen/78.jpg
value=3
rarity=C
type=Creature
subtype=Fish
color=b
converted=4
cost={3}{B}
power=2
toughness=2
ability=flying
timing=main
>White Knight
image=http://magiccards.info/scans/en/m11/39.jpg
value=3

View File

@ -0,0 +1,37 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicChangeTurnPTAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenOtherComesIntoPlayTrigger;
public class Windrider_Eel {
public static final MagicWhenOtherComesIntoPlayTrigger T = new MagicWhenOtherComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent played) {
final MagicPlayer player = permanent.getController();
if (player == played.getController() &&
played.isLand()) {
return new MagicEvent(
permanent,
player,
new Object[]{permanent},
this,
permanent + " gets +2/+2 until end of turn.");
} else {
return null;
}
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicChangeTurnPTAction((MagicPermanent)data[0],2,2));
}
};
}