mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Fixed a NPE in ComputerUtilCost.
This commit is contained in:
@@ -92,9 +92,11 @@ public class ComputerUtilCost {
|
|||||||
|
|
||||||
// Remove X counters - set ChosenX to max possible value here, the SAs should correct that
|
// Remove X counters - set ChosenX to max possible value here, the SAs should correct that
|
||||||
// value later as the AI decides what to do (in checkApiLogic / checkAiLogic)
|
// value later as the AI decides what to do (in checkApiLogic / checkAiLogic)
|
||||||
final String sVar = sa.getSVar(remCounter.getAmount());
|
if (sa.hasSVar(remCounter.getAmount())) {
|
||||||
if (sVar.equals("XChoice")) {
|
final String sVar = sa.getSVar(remCounter.getAmount());
|
||||||
sa.setSVar("ChosenX", String.valueOf(source.getCounters(type)));
|
if (sVar.equals("XChoice")) {
|
||||||
|
sa.setSVar("ChosenX", String.valueOf(source.getCounters(type)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check the sa what the PaymentDecision is.
|
// check the sa what the PaymentDecision is.
|
||||||
|
|||||||
Reference in New Issue
Block a user