added Swiftfoot Boots and Taste of Blood

master
beholder 2011-08-30 09:06:35 +02:00
parent 0301e63e49
commit c498cd71df
2 changed files with 72 additions and 0 deletions

View File

@ -2585,6 +2585,16 @@ converted=5
cost={3}{B}{B}
timing=main
>Taste of Blood
image=http://magiccards.info/scans/en/m12/113.jpg
value=2
rarity=C
type=Sorcery
color=b
converted=1
cost={B}
timing=removal
>Time Ebb
image=http://magiccards.info/scans/en/9e/107.jpg
value=3
@ -7553,6 +7563,18 @@ equip={0}
ability=shroud,haste
timing=equipment
>Swiftfoot Boots
image=http://magiccards.info/scans/en/m12/219.jpg
value=4
rarity=U
type=Artifact
subtype=Equipment
converted=2
cost={2}
equip={1}
ability=hexproof,haste
timing=equipment
>Garruk's Companion
image=http://magiccards.info/scans/en/m11/176.jpg
value=3

View File

@ -0,0 +1,50 @@
package magic.card;
import magic.model.MagicDamage;
import magic.model.MagicGame;
import magic.model.MagicCard;
import magic.model.MagicPayedCost;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicChangeLifeAction;
import magic.model.action.MagicDealDamageAction;
import magic.model.action.MagicMoveCardAction;
import magic.model.choice.MagicTargetChoice;
import magic.model.event.MagicEvent;
import magic.model.event.MagicSpellCardEvent;
import magic.model.stack.MagicCardOnStack;
import magic.model.target.MagicDamageTargetPicker;
public class Taste_of_Blood {
public static final MagicSpellCardEvent S = new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
final MagicPlayer player = cardOnStack.getController();
final MagicCard card = cardOnStack.getCard();
return new MagicEvent(
card,
player,
MagicTargetChoice.NEG_TARGET_PLAYER,
new MagicDamageTargetPicker(1),
new Object[]{cardOnStack,player},
this,
card + " deals 1 damage to target player$ and " +
player + " gains 1 life.");
}
@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));
final MagicPlayer player = event.getTarget(game,choiceResults,0);
if (player != null) {
final MagicDamage damage = new MagicDamage(cardOnStack.getCard(),player,1,false);
game.doAction(new MagicDealDamageAction(damage));
}
game.doAction(new MagicChangeLifeAction((MagicPlayer)data[1],1));
}
};
}