Commit b69faf3
committed
fix: Npc_IsDead now checks BodyState instead of returning false
Was a FIXME stub hardcoded to return false, preventing any dead-NPC checks from
working (e.g. Thorus couldn't recognize Mordrag as dead after being killed).
Now checks Props.BodyState == BsDead, which FightService sets when HP reaches 0.
Note: BodyState is runtime-only - a world reload will respawn the NPC alive. A
permanent death flag in SaveGame state is needed as a follow-up fix.1 parent a796600 commit b69faf3
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
392 | | - | |
393 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| |||
0 commit comments