substance
New Member
- Reaction score
- 34
I've been messing around with healing units VIA triggers but i've run into a problem.
The unit's max HP is 615, and that debug mesage says "unit's current HP is 615.00", so obviously wc3 thinks it did it's job but the unit actually doesnt have full HP (it sits around ~580).
Is there a bug im not aware of?
JASS:
call SetUnitState(data.targetunit, UNIT_STATE_LIFE, GetUnitState(data.targetunit, UNIT_STATE_MAX_LIFE))
call BJDebugMsg("unit039;s current HP is "+R2S(GetUnitState(data.targetunit, UNIT_STATE_LIFE)))
The unit's max HP is 615, and that debug mesage says "unit's current HP is 615.00", so obviously wc3 thinks it did it's job but the unit actually doesnt have full HP (it sits around ~580).
Is there a bug im not aware of?