mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Fixed possible exception during choosing replacement effect resolve order.
This commit is contained in:
parent
34d7141821
commit
bda59fafcf
1 changed files with 7 additions and 5 deletions
|
@ -197,6 +197,7 @@ public class HumanPlayer extends PlayerImpl {
|
||||||
} else {
|
} else {
|
||||||
replacementEffectChoice.setChoiceByKey(response.getString());
|
replacementEffectChoice.setChoiceByKey(response.getString());
|
||||||
}
|
}
|
||||||
|
if (replacementEffectChoice.getChoiceKey() != null) {
|
||||||
int index = 0;
|
int index = 0;
|
||||||
for (String key : rEffects.keySet()) {
|
for (String key : rEffects.keySet()) {
|
||||||
if (replacementEffectChoice.getChoiceKey().equals(key)) {
|
if (replacementEffectChoice.getChoiceKey().equals(key)) {
|
||||||
|
@ -206,6 +207,7 @@ public class HumanPlayer extends PlayerImpl {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue