Added missing status_calc_npc for unitwalk script command (required for npc) (#6256)

Thanks to @aleos89
This commit is contained in:
Atemo 2021-09-16 16:23:19 +02:00 committed by GitHub
parent a725844553
commit b84bbf7c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18944,6 +18944,13 @@ BUILDIN_FUNC(unitwalk)
ud = unit_bl2ud(bl);
if (bl->type == BL_NPC) {
if (!((TBL_NPC*)bl)->status.hp)
status_calc_npc(((TBL_NPC*)bl), SCO_FIRST);
else
status_calc_npc(((TBL_NPC*)bl), SCO_NONE);
}
if (!strcmp(cmd,"unitwalk")) {
int x = script_getnum(st,3);
int y = script_getnum(st,4);