mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08: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,12 +197,14 @@ public class HumanPlayer extends PlayerImpl {
|
|||
} else {
|
||||
replacementEffectChoice.setChoiceByKey(response.getString());
|
||||
}
|
||||
int index = 0;
|
||||
for (String key : rEffects.keySet()) {
|
||||
if (replacementEffectChoice.getChoiceKey().equals(key)) {
|
||||
return index;
|
||||
if (replacementEffectChoice.getChoiceKey() != null) {
|
||||
int index = 0;
|
||||
for (String key : rEffects.keySet()) {
|
||||
if (replacementEffectChoice.getChoiceKey().equals(key)) {
|
||||
return index;
|
||||
}
|
||||
index++;
|
||||
}
|
||||
index++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue