added Pride Guardian

master
beholder 2011-08-28 15:11:54 +02:00
parent 187ad2259b
commit dc08c81039
2 changed files with 52 additions and 0 deletions

View File

@ -744,6 +744,20 @@ toughness=4
ability=flying,first strike
timing=main
>Pride Guardian
image=http://magiccards.info/scans/en/m12/31.jpg
value=2
rarity=C
type=Creature
subtype=Cat,Monk
color=w
converted=1
cost={W}
power=0
toughness=3
ability=defender
timing=main
>Skinrender
image=http://magiccards.info/scans/en/som/78.jpg
value=4

View File

@ -0,0 +1,38 @@
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.MagicTrigger;
import magic.model.trigger.MagicTriggerType;
public class Pride_Guardian {
public static final MagicTrigger T = new MagicTrigger(MagicTriggerType.WhenBlocks) {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final Object data) {
if (permanent == data) {
if (permanent.getBlockedCreature() != null) {
final MagicPlayer player = permanent.getController();
return new MagicEvent(
permanent,
player,
new Object[]{player},
this,
player + " gains 3 life.");
}
}
return null;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicChangeLifeAction((MagicPlayer)data[0],3));
}
};
}