Add script for Stream of Unconsciousness
parent
43c9befd5f
commit
64322d1a90
|
@ -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()));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
]
|
|
@ -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
|
Loading…
Reference in New Issue