added Ruhan of the Fomori and Shattered Angel

master
beholder 2011-09-05 13:11:26 +02:00
parent d461f69e88
commit 70fc62052c
2 changed files with 61 additions and 0 deletions

View File

@ -1114,6 +1114,19 @@ power=1
toughness=1
timing=main
>Ruhan of the Fomori
image=http://magiccards.info/scans/en/cmd/221.jpg
value=5
rarity=M
type=Legendary,Creature
subtype=Giant,Warrior
converted=4
cost={1}{R}{W}{U}
power=7
toughness=7
ability=attacks each turn if able
timing=main
>Scroll Thief
image=http://magiccards.info/scans/en/m11/72.jpg
value=3
@ -1141,6 +1154,20 @@ toughness=1
ability=lifelink
timing=main
>Shattered Angel
image=http://magiccards.info/scans/en/cmd/31.jpg
value=4
rarity=U
type=Creature
subtype=Angel
color=w
converted=5
cost={3}{W}{W}
power=3
toughness=3
ability=flying
timing=main
>Skinrender
image=http://magiccards.info/scans/en/som/78.jpg
value=4

View File

@ -0,0 +1,34 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicChangeLifeAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenOtherComesIntoPlayTrigger;
public class Shattered_Angel {
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();
return (player != played.getController() && played.isLand()) ?
new MagicEvent(
permanent,
player,
new Object[]{player},
this,
player + " gains 3 life."):
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicChangeLifeAction((MagicPlayer)data[0],1));
}
};
}