diff options
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index a918bc853..3e65a4f25 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -12911,6 +12911,11 @@ BUILDIN_FUNC(npcwalkto) y=script_getnum(st,3); if(nd) { + if (!nd->status.hp) { + status_calc_npc(nd, true); + } else { + status_calc_npc(nd, false); + } unit_walktoxy(&nd->bl,x,y,0); } |