added Mausoleum Guard and Maw of the Mire
parent
4ace4121d3
commit
86432f6ef2
|
@ -4585,6 +4585,29 @@ given_pt=1/2
|
|||
given_ability=hexproof
|
||||
timing=equipment
|
||||
|
||||
>Mausoleum Guard
|
||||
image=http://magiccards.info/scans/en/isd/20.jpg
|
||||
value=2
|
||||
rarity=U
|
||||
type=Creature
|
||||
subtype=Human,SCout
|
||||
color=w
|
||||
converted=4
|
||||
cost={3}{W}
|
||||
pt=2/2
|
||||
timing=main
|
||||
|
||||
>Maw of the Mire
|
||||
image=http://magiccards.info/scans/en/isd/108.jpg
|
||||
value=3
|
||||
removal=3
|
||||
rarity=C
|
||||
type=Sorcery
|
||||
color=b
|
||||
converted=5
|
||||
cost={4}{B}
|
||||
timing=removal
|
||||
|
||||
>Morkrut Banshee
|
||||
image=http://magiccards.info/scans/en/isd/110.jpg
|
||||
value=4
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.data.TokenCardDefinitions;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicPlayTokenAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicGraveyardTriggerData;
|
||||
import magic.model.trigger.MagicWhenPutIntoGraveyardTrigger;
|
||||
|
||||
public class Mausoleum_Guard {
|
||||
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,
|
||||
player + " puts two 1/1 white Spirit creature " +
|
||||
"tokens with flying onto the battlefield.") :
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
game.doAction(new MagicPlayTokenAction((MagicPlayer)data[0],TokenCardDefinitions.SPIRIT2_TOKEN_CARD));
|
||||
game.doAction(new MagicPlayTokenAction((MagicPlayer)data[0],TokenCardDefinitions.SPIRIT2_TOKEN_CARD));
|
||||
}
|
||||
};
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicChangeLifeAction;
|
||||
import magic.model.action.MagicDestroyAction;
|
||||
import magic.model.action.MagicMoveCardAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.event.MagicSpellCardEvent;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
import magic.model.target.MagicDestroyTargetPicker;
|
||||
|
||||
public class Maw_of_the_Mire {
|
||||
public static final MagicSpellCardEvent E = new MagicSpellCardEvent() {
|
||||
@Override
|
||||
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
||||
final MagicPlayer player = cardOnStack.getController();
|
||||
return new MagicEvent(
|
||||
cardOnStack.getCard(),
|
||||
player,
|
||||
MagicTargetChoice.NEG_TARGET_LAND,
|
||||
new MagicDestroyTargetPicker(false),
|
||||
new Object[]{cardOnStack,player},
|
||||
this,
|
||||
"Destroy target land$. " + player + " gains 4 life.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object[] data,
|
||||
final Object[] choiceResults) {
|
||||
game.doAction(new MagicMoveCardAction((MagicCardOnStack)data[0]));
|
||||
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
|
||||
public void doAction(final MagicPermanent permanent) {
|
||||
game.doAction(new MagicDestroyAction(permanent));
|
||||
game.doAction(new MagicChangeLifeAction((MagicPlayer)data[1],4));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue