mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
Added skip-all-turns-and-actions feature. Bound to F9.
This commit is contained in:
parent
391b1893da
commit
ed0af0faee
6 changed files with 38 additions and 8 deletions
|
|
@ -371,6 +371,10 @@ public class HumanPlayer extends PlayerImpl<HumanPlayer> {
|
|||
public boolean priority(Game game) {
|
||||
passed = false;
|
||||
if (!abort) {
|
||||
if (passedAllTurns) {
|
||||
pass();
|
||||
return false;
|
||||
}
|
||||
if (passedTurn && game.getStack().isEmpty()) {
|
||||
pass();
|
||||
return false;
|
||||
|
|
@ -382,6 +386,9 @@ public class HumanPlayer extends PlayerImpl<HumanPlayer> {
|
|||
pass();
|
||||
return false;
|
||||
} else if (response.getInteger() != null) {
|
||||
if (response.getInteger() == -9999) {
|
||||
passedAllTurns = true;
|
||||
}
|
||||
pass();
|
||||
passedTurn = true;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue