added Balduvian War-Makers and Craw Giant
parent
2abb183009
commit
2163c70e22
|
@ -12856,3 +12856,29 @@ converted=5
|
|||
cost={2}{R}{R}{R}
|
||||
pt=2/4
|
||||
timing=main
|
||||
|
||||
>Balduvian War-Makers
|
||||
image=http://magiccards.info/scans/en/ai/97.jpg
|
||||
value=3
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Human,Barbarian
|
||||
color=r
|
||||
converted=5
|
||||
cost={4}{R}
|
||||
pt=3/3
|
||||
ability=haste
|
||||
timing=fmain
|
||||
|
||||
>Craw Giant
|
||||
image=http://magiccards.info/scans/en/tsts/76.jpg
|
||||
value=5
|
||||
rarity=U
|
||||
type=Creature
|
||||
subtype=Giant
|
||||
color=g
|
||||
converted=7
|
||||
cost={3}{G}{G}{G}{G}
|
||||
pt=6/4
|
||||
ability=trample
|
||||
timing=main
|
||||
|
|
|
@ -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 Balduvian_War_Makers {
|
||||
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]));
|
||||
}
|
||||
};
|
||||
}
|
|
@ -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 Craw_Giant {
|
||||
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]));
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue