added Thraben Purebloods and Traitorous Blood

master
beholder 2011-09-30 12:05:55 +02:00
parent 6c0445fe2a
commit 5c633e782a
2 changed files with 75 additions and 0 deletions

View File

@ -5076,3 +5076,26 @@ converted=5
cost={3}{U}{U}
ability=flying
timing=main
>Thraben Purebloods
image=http://magiccards.info/scans/en/isd/37.jpg
value=3
rarity=C
type=Creature
subtype=Hound
color=w
converted=5
cost={4}{W}
pt=3/5
timing=main
>Traitorous Blood
image=http://magiccards.info/scans/en/isd/166.jpg
value=4
removal=5
rarity=C
type=Sorcery
color=r
converted=3
cost={1}{R}{R}
timing=removal

View File

@ -0,0 +1,52 @@
package magic.card;
import magic.model.MagicAbility;
import magic.model.MagicGame;
import magic.model.MagicPayedCost;
import magic.model.MagicPermanent;
import magic.model.MagicPermanentState;
import magic.model.MagicPlayer;
import magic.model.action.MagicChangeStateAction;
import magic.model.action.MagicGainControlAction;
import magic.model.action.MagicMoveCardAction;
import magic.model.action.MagicPermanentAction;
import magic.model.action.MagicSetAbilityAction;
import magic.model.action.MagicUntapAction;
import magic.model.choice.MagicTargetChoice;
import magic.model.event.MagicEvent;
import magic.model.event.MagicSpellCardEvent;
import magic.model.stack.MagicCardOnStack;
import magic.model.target.MagicExileTargetPicker;
public class Traitorous_Blood {
public static final MagicSpellCardEvent S = 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_CREATURE,
MagicExileTargetPicker.getInstance(),
new Object[]{cardOnStack,player},
this,
"Gain control of target creature$ until end of turn. Untap it. " +
"It gains trample and haste 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]));
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicGainControlAction((MagicPlayer)data[1],creature));
game.doAction(new MagicChangeStateAction(creature,MagicPermanentState.ReturnToOwnerAtEndOfTurn,true));
game.doAction(new MagicUntapAction(creature));
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.Trample));
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.Haste));
}
});
}
};
}