FixZ on NPC initial spawn to keep NPC's from hopping

This commit is contained in:
Akkadius 2017-08-18 20:23:16 -05:00
parent bb8c6da0b4
commit 718a2c2205

View File

@ -648,6 +648,8 @@ void EntityList::AddNPC(NPC *npc, bool SendSpawnPacket, bool dontqueue)
parse->EventNPC(EVENT_SPAWN, npc, nullptr, "", 0);
npc->FixZ();
uint16 emoteid = npc->GetEmoteID();
if (emoteid != 0)
npc->DoNPCEmote(ONSPAWN, emoteid);