Add script for Stream of Unconsciousness

master
Jericho Pumpkin 2013-10-11 21:03:10 +00:00
parent 43c9befd5f
commit 64322d1a90
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,26 @@
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.TARGET_CREATURE,
new MagicWeakenTargetPicker(4, 0),
this,
"Target creature\$ gets -4/-0 until end of turn. " +
"If you control a Wizard, draw a card."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicChangeTurnPTAction(creature, -4, 0));
if(event.getPlayer().getNrOfPermanents(MagicSubType.Wizard) > 0){
game.doAction(new MagicDrawAction(event.getPlayer()));
}
}
});
}
}
]

View File

@ -0,0 +1,10 @@
name=Stream of Unconsciousness
url=http://magiccards.info/mt/en/52.html
image=http://magiccards.info/scans/en/mt/52.jpg
value=2.967
rarity=C
cost={U}
type=Tribal,Instant
subtype=Wizard
timing=removal
requires_groovy_code