isDying
isDying: (NpcUtil, NPC) -> booleanWhether npc is dying: never for the NPCs that reach 0 hitpoints without dying (gargoyles, the Kalphite Queen's first form, ...), always for the ones that die without a health bar reaching 0, else an NPC whose isDead() is set and whose shown composition has an "Attack" option and no death-hider exclusion (the game cache's param 1799). An alive NPC costs its id and one dead-flag read; a despawned one answers false.