added Hunding Gjornersen and Marhault Elsdragon

master
beholder 2011-10-08 20:19:22 +02:00
parent 3dd69fc8d3
commit afe37f097d
3 changed files with 110 additions and 0 deletions

View File

@ -12905,3 +12905,27 @@ converted=3
cost={3} cost={3}
pt=2/2 pt=2/2
timing=main timing=main
>Hunding Gjornersen
image=http://magiccards.info/scans/en/me3/152.jpg
value=4
rarity=R
type=Legendary,Creature
subtype=Human,Warrior
color=wu
converted=6
cost={3}{W}{U}{U}
pt=5/4
timing=main
>Marhault Elsdragon
image=http://magiccards.info/scans/en/ch/114.jpg
value=4
rarity=R
type=Legendary,Creature
subtype=Elf,Warrior
color=rg
converted=6
cost={3}{R}{R}{G}
pt=4/6
timing=main

View File

@ -0,0 +1,43 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPermanentList;
import magic.model.MagicPlayer;
import magic.model.action.MagicChangeTurnPTAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenBecomesBlockedTrigger;
public class Hunding_Gjornersen {
public static final MagicWhenBecomesBlockedTrigger T = new MagicWhenBecomesBlockedTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
final MagicPlayer player = permanent.getController();
if (creature == permanent) {
final MagicPermanentList plist = permanent.getBlockingCreatures();
final int amount = 1 * (plist.size() - 1);
if (amount > 0) {
return new MagicEvent(
permanent,
player,
new Object[]{permanent,amount},
this,
permanent + " gets +" + amount + "/+" + amount + " until end of turn.");
}
}
return MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicChangeTurnPTAction(
(MagicPermanent)data[0],
(Integer)data[1],
(Integer)data[1]));
}
};
}

View File

@ -0,0 +1,43 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPermanentList;
import magic.model.MagicPlayer;
import magic.model.action.MagicChangeTurnPTAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenBecomesBlockedTrigger;
public class Marhault_Elsdragon {
public static final MagicWhenBecomesBlockedTrigger T = new MagicWhenBecomesBlockedTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
final MagicPlayer player = permanent.getController();
if (creature == permanent) {
final MagicPermanentList plist = permanent.getBlockingCreatures();
final int amount = 1 * (plist.size() - 1);
if (amount > 0) {
return new MagicEvent(
permanent,
player,
new Object[]{permanent,amount},
this,
permanent + " gets +" + amount + "/+" + amount + " until end of turn.");
}
}
return MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicChangeTurnPTAction(
(MagicPermanent)data[0],
(Integer)data[1],
(Integer)data[1]));
}
};
}