move Whispering Madness to scripts
parent
fd89c3c252
commit
018b12d8ce
|
@ -5,7 +5,7 @@
|
|||
return new MagicEvent(
|
||||
cardOnStack,
|
||||
this,
|
||||
"Each player discards his or her hand, then draws cards equal to the greatest number of cards a player discarded this way."
|
||||
"Each player discards his or her hand, then draws cards equal to the greatest number of cards a player discarded this way. Cipher."
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -13,12 +13,11 @@
|
|||
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||||
final MagicPlayer cardPlayer = event.getPlayer();
|
||||
final int drawAmount = Math.max(cardPlayer.getHandSize(),cardPlayer.getOpponent().getHandSize());
|
||||
for (final MagicPlayer player : game.getPlayers()) {
|
||||
for (final MagicPlayer player : game.getAPNAP()) {
|
||||
game.addEvent(new MagicDiscardEvent(event.getSource(),player,player.getHandSize()));
|
||||
game.addEvent(new MagicDrawEvent(event.getSource(),player,drawAmount));
|
||||
}
|
||||
game.doAction(new MagicCipherAction(event.getCardOnStack(),event.getPlayer()));
|
||||
game.doAction(new MagicCipherAction(event.getCardOnStack(), cardPlayer));
|
||||
}
|
||||
}
|
||||
]
|
||||
//Discarding and drawing should be simultaneous between players. Should end in a draw if both players would draw into empty libraries.
|
|
@ -4,8 +4,6 @@ value=2.500
|
|||
rarity=R
|
||||
type=Sorcery
|
||||
cost={2}{U}{B}
|
||||
effect=Each player discards his or her hand, then draws cards equal to the greatest number of cards a player discarded this way.;\
|
||||
Cipher
|
||||
timing=main
|
||||
requires_groovy_code
|
||||
oracle=Each player discards his or her hand, then draws cards equal to the greatest number of cards a player discarded this way. Cipher
|
Loading…
Reference in New Issue