added Soul Warden and Soul's Attendant

master
beholder 2011-09-13 15:19:14 +02:00
parent 61b7eaf1c5
commit d7c509828a
3 changed files with 94 additions and 0 deletions

View File

@ -1397,6 +1397,32 @@ toughness=1
ability=flying,can't block creatures without flying
timing=main
>Soul Warden
image=http://magiccards.info/scans/en/pch/7.jpg
value=2
rarity=C
type=Creature
subtype=Human,Cleric
color=w
converted=1
cost={W}
power=1
toughness=1
timing=main
>Soul's Attendant
image=http://magiccards.info/scans/en/roe/44.jpg
value=2
rarity=C
type=Creature
subtype=Human,Cleric
color=w
converted=1
cost={W}
power=1
toughness=1
timing=main
>Stillmoon Cavalier
image=http://magiccards.info/scans/en/eve/95.jpg
value=3

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 Soul_Warden {
public static final MagicWhenOtherComesIntoPlayTrigger T = new MagicWhenOtherComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
final MagicPlayer player = permanent.getController();
return (otherPermanent != permanent && otherPermanent.isCreature()) ?
new MagicEvent(
permanent,
player,
new Object[]{player},
this,
player + " gains 1 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));
}
};
}

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 Soul_s_Attendant {
public static final MagicWhenOtherComesIntoPlayTrigger T = new MagicWhenOtherComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
final MagicPlayer player = permanent.getController();
return (otherPermanent != permanent && otherPermanent.isCreature()) ?
new MagicEvent(
permanent,
player,
new Object[]{player},
this,
player + " gains 1 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));
}
};
}