added Pygmy Troll and Rabid Elephant
parent
3cfabab157
commit
e0b9878e17
|
@ -14717,3 +14717,29 @@ cost={3}{B}
|
|||
pt=2/2
|
||||
ability=flying
|
||||
timing=main
|
||||
|
||||
>Pygmy Troll
|
||||
url=http://magiccards.info/ex/en/118.html
|
||||
image=http://magiccards.info/scans/en/ex/118.jpg
|
||||
value=2
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Troll
|
||||
color=g
|
||||
converted=2
|
||||
cost={1}{G}
|
||||
pt=1/1
|
||||
timing=main
|
||||
|
||||
>Rabid Elephant
|
||||
url=http://magiccards.info/od/en/263.html
|
||||
image=http://magiccards.info/scans/en/od/263.jpg
|
||||
value=2
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Elephant
|
||||
color=g
|
||||
converted=5
|
||||
cost={4}{G}
|
||||
pt=3/4
|
||||
timing=main
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.action.MagicChangeTurnPTAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicWhenBecomesBlockedTrigger;
|
||||
|
||||
public class Pygmy_Troll {
|
||||
public static final MagicWhenBecomesBlockedTrigger T = new MagicWhenBecomesBlockedTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent data) {
|
||||
if (data == permanent) {
|
||||
final int amount = permanent.getBlockingCreatures().size();
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
permanent.getController(),
|
||||
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,37 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.action.MagicChangeTurnPTAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicWhenBecomesBlockedTrigger;
|
||||
|
||||
public class Rabid_Elephant {
|
||||
public static final MagicWhenBecomesBlockedTrigger T = new MagicWhenBecomesBlockedTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent data) {
|
||||
if (data == permanent) {
|
||||
final int amount = permanent.getBlockingCreatures().size() * 2;
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
permanent.getController(),
|
||||
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