mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +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 {
|
||||
replacementEffectChoice.setChoiceByKey(response.getString());
|
||||
}
|
||||
if (replacementEffectChoice.getChoiceKey() != null) {
|
||||
int index = 0;
|
||||
for (String key : rEffects.keySet()) {
|
||||
if (replacementEffectChoice.getChoiceKey().equals(key)) {
|
||||
|
@ -206,6 +207,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue