* Fixed possible exception during choosing replacement effect resolve order.

This commit is contained in:
LevelX2 2014-11-26 12:29:42 +01:00
parent 34d7141821
commit bda59fafcf

View file

@ -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;
}