Correct param name

This commit is contained in:
Oleg Agafonov 2020-06-30 20:46:51 +04:00
parent 429df8cf77
commit 307cddcbee
2 changed files with 10 additions and 10 deletions

View file

@ -660,15 +660,15 @@ public class TestPlayer implements Player {
}
}
} else if (action.getAction().startsWith("waitStackResolved")) {
boolean oneTime = action.getAction().equals("waitStackResolved:1");
boolean skipOneStackObjectOnly = action.getAction().equals("waitStackResolved:1");
if (game.getStack().isEmpty()) {
// all done, can use next command
actions.remove(action);
continue;
} else {
// need to wait (don't remove command, except one time)
// need to wait (don't remove command, except one skip only)
tryToPlayPriority(game);
if (oneTime) {
if (skipOneStackObjectOnly) {
actions.remove(action);
}
return true;

View file

@ -1486,8 +1486,8 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
}
public void waitStackResolved(int turnNum, PhaseStep step, TestPlayer player, boolean oneTime) {
String command = "waitStackResolved" + (oneTime ? ":1" : "");
public void waitStackResolved(int turnNum, PhaseStep step, TestPlayer player, boolean skipOneStackObjectOnly) {
String command = "waitStackResolved" + (skipOneStackObjectOnly ? ":1" : "");
player.addAction(turnNum, step, command);
}
@ -1845,18 +1845,18 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
waitStackResolved(turnNum, step, false);
}
public void waitStackResolved(int turnNum, PhaseStep step, boolean oneTime) {
public void waitStackResolved(int turnNum, PhaseStep step, boolean skipOneStackObjectOnly) {
if (playerA != null) {
waitStackResolved(turnNum, step, playerA, oneTime);
waitStackResolved(turnNum, step, playerA, skipOneStackObjectOnly);
}
if (playerB != null) {
waitStackResolved(turnNum, step, playerB, oneTime);
waitStackResolved(turnNum, step, playerB, skipOneStackObjectOnly);
}
if (playerC != null) {
waitStackResolved(turnNum, step, playerC, oneTime);
waitStackResolved(turnNum, step, playerC, skipOneStackObjectOnly);
}
if (playerD != null) {
waitStackResolved(turnNum, step, playerD, oneTime);
waitStackResolved(turnNum, step, playerD, skipOneStackObjectOnly);
}
}