Quote:
Originally Posted by Berbanog
When the unit died I checked its health immediately at death (to which it responded 0.00) and then again 3 seconds later (to which it also responded 0.00). Then I checked its health in the thread after the unit dies (a 0.00-second timer) and got the same results.
|
Try with a TriggerSleepAction(0) and you will see a dead unit with more than 0.405 hp.
Btw i don't consider myself using some common.ai native inside a trigger as a "safer" way.
Blizzard don't officially support it and we all know how supported things are lame/bugged sometimes.
IsUnitType(<unit>,UNIT_TYPE_DEAD) and GetUnitTypeId(<unit>) != 0 is perfect for me, even if it should be "much slower" than the native GetWidgetLife or UnitAlive.
I've already explained my reasons few post before, plz read them before comment it.