added Skywinder Drake and Slaughter Cry

master
beholder 2011-08-29 21:08:47 +02:00
parent 6edfdb262a
commit b7eff44586
2 changed files with 67 additions and 0 deletions

View File

@ -826,6 +826,20 @@ toughness=2
ability=persist
timing=main
>Skywinder Drake
image=http://magiccards.info/scans/en/m12/75.jpg
value=3
rarity=C
type=Creature
subtype=Drake
color=u
converted=3
cost={2}{U}
power=3
toughness=1
ability=flying,can't block creatures without flying
timing=main
>Empyrial Archangel
image=http://magiccards.info/scans/en/ala/166.jpg
value=5
@ -2283,6 +2297,16 @@ converted=2
cost={1}{R}
timing=pump
>Slaughter Cry
image=http://magiccards.info/scans/en/m12/155.jpg
value=3
rarity=C
type=Instant
color=r
converted=3
cost={2}{R}
timing=pump
>Grasp of Darkness
image=http://magiccards.info/scans/en/som/65.jpg
value=3

View File

@ -0,0 +1,43 @@
package magic.card;
import magic.model.MagicAbility;
import magic.model.MagicGame;
import magic.model.MagicPayedCost;
import magic.model.MagicPermanent;
import magic.model.action.MagicChangeTurnPTAction;
import magic.model.action.MagicMoveCardAction;
import magic.model.action.MagicSetAbilityAction;
import magic.model.choice.MagicTargetChoice;
import magic.model.event.MagicEvent;
import magic.model.event.MagicSpellCardEvent;
import magic.model.stack.MagicCardOnStack;
import magic.model.target.MagicFirstStrikeTargetPicker;
public class Slaughter_Cry {
public static final MagicSpellCardEvent E = new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack.getCard(),
cardOnStack.getController(),
MagicTargetChoice.POS_TARGET_CREATURE,
MagicFirstStrikeTargetPicker.getInstance(),
new Object[]{cardOnStack},
this,
"Target creature$ gets +3/+0 and gains first strike until end of turn.");
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] data,
final Object[] choiceResults) {
game.doAction(new MagicMoveCardAction((MagicCardOnStack)data[0]));
final MagicPermanent creature=event.getTarget(game,choiceResults,0);
if (creature!=null) {
game.doAction(new MagicChangeTurnPTAction(creature,3,0));
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.FirstStrike));
}
}
};
}