Fix for r26453.

This commit is contained in:
elcnesh
2014-06-27 22:11:27 +00:00
parent d7aa626c45
commit d5f7cdb729

View File

@@ -428,7 +428,7 @@ public class HumanCostDecision extends CostDecisionMakerBase {
final String sVar = ability.getSVar(amount);
// Generalize this
if (sVar.equals("XChoice")) {
c = chooseXValue(cost.getList().size());
c = chooseXValue(cost.getLKIList().size());
} else {
c = AbilityUtils.calculateAmount(source, amount, ability);
}
@@ -503,7 +503,7 @@ public class HumanCostDecision extends CostDecisionMakerBase {
final String sVar = ability.getSVar(amount);
// Generalize this
if (sVar.equals("XChoice")) {
c = chooseXValue(cost.getList().size());
c = chooseXValue(cost.getLKIList().size());
} else {
c = AbilityUtils.calculateAmount(source, amount, ability);
}
@@ -559,7 +559,7 @@ public class HumanCostDecision extends CostDecisionMakerBase {
final String sVar = ability.getSVar(amount);
// Generalize this
if (sVar.equals("XChoice")) {
c = chooseXValue(cost.getList().size());
c = chooseXValue(cost.getLKIList().size());
} else {
c = AbilityUtils.calculateAmount(source, amount, ability);
}