added Moonveil Dragon and Nearheath Stalker

master
beholder 2012-02-22 14:57:49 +01:00
parent 722dd6cfaa
commit 41a322fbe1
3 changed files with 90 additions and 0 deletions

View File

@ -0,0 +1,14 @@
>Moonveil Dragon
url=http://magiccards.info/dka/en/99.html
image=http://magiccards.info/scans/en/dka/99.jpg
value=5
rarity=M
type=Creature
subtype=Dragon
color=r
converted=6
cost={3}{R}{R}{R}
pt=5/5
ability=flying
timing=fmain
requires_card_code

View File

@ -0,0 +1,13 @@
>Nearheath Stalker
url=http://magiccards.info/dka/en/100.html
image=http://magiccards.info/scans/en/dka/100.jpg
value=3
rarity=C
type=Creature
subtype=Vampire,Rogue
color=r
converted=5
cost={4}{R}
pt=4/1
ability=undying
timing=main

View File

@ -0,0 +1,63 @@
package magic.card;
import java.util.Collection;
import magic.model.MagicGame;
import magic.model.MagicManaCost;
import magic.model.MagicPayedCost;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.MagicSource;
import magic.model.action.MagicChangeTurnPTAction;
import magic.model.condition.MagicCondition;
import magic.model.event.MagicActivationHints;
import magic.model.event.MagicEvent;
import magic.model.event.MagicPayManaCostEvent;
import magic.model.event.MagicPermanentActivation;
import magic.model.event.MagicTiming;
import magic.model.target.MagicTarget;
import magic.model.target.MagicTargetFilter;
public class Moonveil_Dragon {
public static final MagicPermanentActivation A = new MagicPermanentActivation(
new MagicCondition[]{
MagicManaCost.RED.getCondition()},
new MagicActivationHints(MagicTiming.Pump),
"Pump") {
@Override
public MagicEvent[] getCostEvent(final MagicSource source) {
return new MagicEvent[]{
new MagicPayManaCostEvent(
source,
source.getController(),
MagicManaCost.RED)};
}
@Override
public MagicEvent getPermanentEvent(
final MagicPermanent source,
final MagicPayedCost payedCost) {
return new MagicEvent(
source,
source.getController(),
new Object[]{source.getController()},
this,
"Each creature you control gets +1/+0 until end of turn.");
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] data,
final Object[] choiceResults) {
final Collection<MagicTarget> targets = game.filterTargets(
(MagicPlayer)data[0],
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
for (final MagicTarget target : targets) {
game.doAction(new MagicChangeTurnPTAction((MagicPermanent)target,1,0));
}
}
};
}