added Teeka's Dragon and Wolverine Pack

master
beholder 2011-10-09 06:39:59 +02:00
parent 13ec22d634
commit 1f291161c1
3 changed files with 110 additions and 0 deletions

View File

@ -12929,3 +12929,27 @@ converted=6
cost={3}{R}{R}{G}
pt=4/6
timing=main
>Teeka's Dragon
image=http://magiccards.info/scans/en/mr/285.jpg
value=4
rarity=R
type=Artifact,Creature
subtype=Dragon
converted=9
cost={9}
pt=5/5
ability=flying,trample
timing=main
>Wolverine Pack
image=http://magiccards.info/scans/en/5e/206.jpg
value=3
rarity=U
type=Creature
subtype=Wolverine
color=g
converted=4
cost={2}{G}{G}
pt=2/4
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 Teeka_s_Dragon {
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 = 4 * (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 Wolverine_Pack {
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 = 2 * (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]));
}
};
}