added Quirion Dryad and Rain of Tears

master
beholder 2011-09-22 06:57:58 +02:00
parent b241307955
commit b47f1f72ea
3 changed files with 109 additions and 0 deletions

View File

@ -1,3 +1,15 @@
>Quirion Dryad
image=http://magiccards.info/scans/en/10e/287.jpg
value=3
rarity=R
type=Creature
subtype=Dryad
color=g
converted=2
cost={1}{G}
pt=1/1
timing=fmain
>Molimo, Maro-Sorcerer
image=http://magiccards.info/scans/en/10e/280.jpg
value=5
@ -9070,6 +9082,17 @@ converted=3
cost={1}{R}{R}
timing=removal
>Rain of Tears
image=http://magiccards.info/scans/en/10e/170.jpg
value=2
removal=3
rarity=U
type=Sorcery
color=b
converted=3
cost={1}{B}{B}
timing=removal
>Sunblast Angel
image=http://magiccards.info/scans/en/som/22.jpg
value=5

View File

@ -0,0 +1,42 @@
package magic.card;
import magic.model.MagicCard;
import magic.model.MagicColor;
import magic.model.MagicCounterType;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicChangeCountersAction;
import magic.model.event.MagicEvent;
import magic.model.stack.MagicCardOnStack;
import magic.model.trigger.MagicWhenSpellIsPlayedTrigger;
public class Quirion_Dryad {
public static final MagicWhenSpellIsPlayedTrigger T = new MagicWhenSpellIsPlayedTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack data) {
final MagicPlayer player = permanent.getController();
final MagicCard card = data.getCard();
return (card.getOwner() == player &&
(MagicColor.White.hasColor(card.getColorFlags(game)) ||
MagicColor.Blue.hasColor(card.getColorFlags(game)) ||
MagicColor.Black.hasColor(card.getColorFlags(game)) ||
MagicColor.Red.hasColor(card.getColorFlags(game))) ) ?
new MagicEvent(
permanent,
player,
new Object[]{permanent},
this,
"Put a +1/+1 counter on " + permanent + ".") :
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicChangeCountersAction((MagicPermanent)data[0],MagicCounterType.PlusOne,1,true));
}
};
}

View File

@ -0,0 +1,44 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPayedCost;
import magic.model.MagicPermanent;
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 Rain_of_Tears {
public static final MagicSpellCardEvent S = new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack.getCard(),
cardOnStack.getController(),
MagicTargetChoice.NEG_TARGET_LAND,
new MagicDestroyTargetPicker(false),
new Object[]{cardOnStack},
this,
"Destroy target land$.");
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] data,
final Object[] choiceResults) {
final MagicCardOnStack cardOnStack = (MagicCardOnStack)data[0];
game.doAction(new MagicMoveCardAction(cardOnStack));
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent permanent) {
game.doAction(new MagicDestroyAction(permanent));
}
});
}
};
}