We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f539bb commit dc06343Copy full SHA for dc06343
src/main/java/bwapi/Unit.java
@@ -311,7 +311,7 @@ public int getBottom() {
311
* @see #getInitialHitPoints
312
*/
313
public int getHitPoints() {
314
- int hitpoints = self().hitPoints.get();
+ int hitpoints = unitData.getHitPoints();
315
if (game.isLatComEnabled() && self().hitPoints.valid(game.getFrameCount())) {
316
return hitpoints + self().hitPoints.get();
317
}
0 commit comments