mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
Check if actually different replacement effects
This commit is contained in:
parent
af0e9aac89
commit
1c540bbc77
1 changed files with 11 additions and 1 deletions
|
@ -341,8 +341,18 @@ public class HumanPlayer extends PlayerImpl {
|
|||
|
||||
replacementEffectChoice.getChoices().clear();
|
||||
replacementEffectChoice.setKeyChoices(rEffects);
|
||||
|
||||
// Check if there are different ones
|
||||
int differentChoices = 0;
|
||||
String lastChoice = "";
|
||||
for (String value : replacementEffectChoice.getKeyChoices().values()) {
|
||||
if (!lastChoice.equalsIgnoreCase(value)) {
|
||||
lastChoice = value;
|
||||
differentChoices++;
|
||||
}
|
||||
}
|
||||
|
||||
while (!abort) {
|
||||
while (!abort && differentChoices > 1) {
|
||||
updateGameStatePriority("chooseEffect", game);
|
||||
prepareForResponse(game);
|
||||
if (!isExecutingMacro()) {
|
||||
|
|
Loading…
Reference in a new issue