mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Merge pull request #5145 from spjspj/master
Check if there are actually different replacement effects and only ask then if there are. Having two Mana Reflections out makes the game unplayable atm.
This commit is contained in:
commit
aae3930ef4
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