added Blight Mamba and Blistergrub
parent
50cf53e9f2
commit
043e83cbdc
|
@ -11560,3 +11560,29 @@ converted=5
|
|||
cost={3}{R}{R}
|
||||
pt=3/3
|
||||
timing=main
|
||||
|
||||
>Blight Mamba
|
||||
image=http://magiccards.info/scans/en/som/112.jpg
|
||||
value=2
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Snake
|
||||
color=g
|
||||
converted=2
|
||||
cost={1}{G}
|
||||
pt=1/1
|
||||
ability=infect
|
||||
timing=main
|
||||
|
||||
>Blistergrub
|
||||
image=http://magiccards.info/scans/en/som/56.jpg
|
||||
value=2
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Horror
|
||||
color=b
|
||||
converted=3
|
||||
cost={2}{B}
|
||||
pt=2/2
|
||||
ability=swampwalk
|
||||
timing=main
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.event.MagicPermanentActivation;
|
||||
import magic.model.event.MagicRegenerationActivation;
|
||||
|
||||
public class Blight_Mamba {
|
||||
public static final MagicPermanentActivation A = new MagicRegenerationActivation(MagicManaCost.ONE_GREEN);
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicChangeLifeAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicGraveyardTriggerData;
|
||||
import magic.model.trigger.MagicWhenPutIntoGraveyardTrigger;
|
||||
|
||||
public class Blistergrub {
|
||||
public static final MagicWhenPutIntoGraveyardTrigger T = new MagicWhenPutIntoGraveyardTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicGraveyardTriggerData triggerData) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (MagicLocationType.Play == triggerData.fromLocation) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new Object[]{player},
|
||||
this,
|
||||
game.getOpponent(player)+ " loses 2 life."):
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
final MagicPlayer player=(MagicPlayer)data[0];
|
||||
game.doAction(new MagicChangeLifeAction(game.getOpponent(player),-2));
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue