Closed tripleabuilderbot closed 4 years ago
@FrostionAAA do you recall which map you were playing when this happened?
it was in Warcraft War Heroes, now available.
That condition doesn't seem to make sense to me?
if (hits > planeHitPoints) {
throw new IllegalStateException("Cannot have more hits than number of die rolls");
}
It's not comparing hits to number of die rolls, but to number of hit points of the planes. Seems it's just wrong?
These two errors are probably the same:: https://github.com/triplea-game/triplea/issues/6745
I can't assign bugs yet, but I'm working on this. It looks like the problem is two variables were flipped during the FireAa refactoring.
User Description
This error was a map crashing one. It happened in round 7 while AI was calculating its CM as far as I could see. //FrostionAAA
Log Message
java.lang.IllegalStateException: Cannot have more hits than number of die rolls
TripleA Version
2.0.19404
Java Version
11.0.6
Operating System
Windows 10
Exception
java.lang.IllegalStateException: java.lang.IllegalStateException: Cannot have more hits than number of die rolls
Stack Trace