added condition that for pass priority can only activate on your own turn

master
melvin 2011-06-06 10:13:17 +08:00
parent e181db86a4
commit e351a212dc
1 changed files with 3 additions and 2 deletions

View File

@ -95,11 +95,12 @@ public class MagicPlayChoice extends MagicChoice {
} catch (final Exception err) {
}
}
return PASS_CHOICE_RESULTS;
}
if ((game.getStack().isEmpty() || game.getStack().hasItemOnTopOfPlayer(player)) && game.getPassPriority()) {
if ((game.getStack().isEmpty() || game.getStack().hasItemOnTopOfPlayer(player)) &&
game.getTurnPlayer() == player &&
game.getPassPriority()) {
return PASS_CHOICE_RESULTS;
}