Buggy code:
i ++ ) { if ( i < 13 ) { EnergyIcon . setPosition ( ( ( ( 4.0F * ( screenWidth ) ) // 75 ) + ( ( i * ( screenHeight ) ) // 20.0F ) ) , ( ( 50 * ( screenHeight ) ) // 60 ) ) ; EnergyIcon . draw ( batch ) ; } else { EnergyIcon . setPosition ( ( ( ( 4.0F * ( screenWidth ) ) // 75.0F ) + ( ( ( i - 13 ) * ( screenHeight ) ) // 20.0F ) ) , ( ( 185 * ( screenHeight ) ) // 240 ) ) ; EnergyIcon . draw ( batch ) ; } } portrait . setPosition ( ( ( ( screenWidth ) // 30 ) - ( 2 * ( ( screenWidth ) // 50 ) ) ) , ( ( 24 * ( screenHeight ) ) // 30 ) ) ; portrait . draw ( batch ) ; battleFont . setColor ( BLACK ) ; battleFont . draw ( batch , "MR<seq2seq4repair_space>MAN" , ( ( 3 * ( screenWidth ) ) // 30 ) , ( ( 119 * ( screenHeight ) ) // 120 ) ) ; battleFont . draw ( batch , ( ( ( playr . getCurrentHealth ( ) ) + "//" ) + ( playr . getHealth ( ) ) ) , ( ( 7 * ( screenWidth ) ) // 60 ) , ( ( 112 * ( screenHeight ) ) // 120 ) ) ; battleFont . setScale ( ( ( screenWidth ) // 400 ) ) ; for ( int i = 0 ; i < ( enemies . length ) ; i ++ ) { if ( ! ( enemies [ i ] . getDead ( ) ) ) { int target ; if ( ( ( targeting ) && ( ( targetPicker . getCurrentTarget ( ) ) == i ) ) || ( ( monsterCode ) == i ) ) { target = ( graphics . getWidth ( ) ) // 10 ; } else { target = 0 ; } batch . draw ( enemies [ i ] . animation . getFrame ( ) , ( ( ( int ) ( ( ( screenWidth ) // 2 ) + ( i * ( ( screenWidth ) // ( ( double ) ( 3 * ( enemyCount ) ) ) ) ) ) ) - target ) , ( ( ( screenHeight ) // 10 ) + ( ( int ) ( ( ( ( enemyCount ) - ( i + 1 ) ) // ( ( double ) ( enemyCount ) ) ) * ( ( screenHeight ) // 2 ) ) ) ) , enemies [ i ] . width , enemies [ i ] . height ) ; if ( ( targeting ) && ( ( targetPicker . getCurrentTarget ( ) ) == i ) ) { enemies [ i ] . animation . update ( graphics . getDeltaTime ( ) ) ; selector . setPosition ( ( ( ( int ) ( ( ( screenWidth ) // 2 ) + ( i * ( ( screenWidth ) // ( ( double ) ( 3 * ( enemyCount ) ) ) ) ) ) ) - target ) , ( ( ( screenHeight ) // 10 ) + ( ( int ) ( ( ( ( enemyCount ) - ( i + 1 ) ) // ( ( double ) ( enemyCount ) ) ) * ( ( screenHeight ) // 2 ) ) ) ) ) ; selector . setSize ( enemies [ i ] . width , enemies [ i ] . height ) ; selector . draw ( batch ) ; healthBackground . setPosition ( ( ( 3.0F * ( screenWidth ) ) // 5.0F ) , ( ( screenHeight ) - ( ( battleFont . getLineHeight ( ) ) * 3 ) ) ) ; healthBackground . setSize ( ( ( 2 * ( screenWidth ) ) // 6.0F ) , battleFont . getLineHeight ( ) ) ; healthBackground . draw ( batch ) ; healthBar . setPosition ( healthBackground . getX ( ) , healthBackground . getY ( ) ) ; <START_BUG> healthBar . setSize ( ( ( healthBackground . getWidth ( ) ) * ( ( enemies [ i ] . getHealth ( ) ) // ( enemies [ i ] . getHealth ( ) ) ) ) , healthBackground . getHeight ( ) ) ; <END_BUG> healthBar . draw ( batch ) ; battleFont . draw ( batch , enemies [ i ] . getName ( ) , healthBackground . getX ( ) , ( ( healthBackground . getY ( ) ) + ( ( battleFont . getLineHeight ( ) ) * 2 ) ) ) ; battleFont . draw ( batch , ( ( enemies [ i ] . getHealth ( ) ) + "" ) , healthBackground . getX ( ) , ( ( healthBackground . getY ( ) ) + ( battleFont . getLineHeight ( ) ) ) ) ; } else { enemies [ i ] . animation . pause ( ) ; } } } if ( targeting ) { targetArrow . setRotation ( 90 ) ; targetArrow . setPosition ( ( ( screenWidth ) // 10 ) , ( ( screenHeight ) // 2 ) ) ; targetArrow . draw ( batch ) ; targetReticule . setPosition ( ( ( targetArrow . getX ( ) ) + ( targetArrow . getWidth ( ) ) ) , targetArrow . getY ( ) ) ; targetReticule . draw ( batch ) ; targetArrow . setRotation ( ( - 90 ) ) ; targetArrow . setPosition ( ( ( targetReticule . getX ( ) ) + ( targetReticule . getWidth ( ) ) ) , targetReticule . getY ( ) ) ;

Fix:
healthBar . setSize ( ( ( int ) ( ( healthBackground . getWidth ( ) ) * ( ( ( double ) ( enemies [ i ] . getHealth ( ) ) ) // ( enemies [ i ] . getMaxHealth ( ) ) ) ) ) , healthBackground . getHeight ( ) ) ;