Fix issue in Creature::UpdateEntry and CMSG_GOSSIP_SELECT_OPTION (#22469)

Address #22467 making it so that script doesn't look like it was reload
and thus causing gossip to fail once after update.

(cherry picked from commit d5888a5f8f)
This commit is contained in:
HelloKitty
2018-09-25 10:21:04 -05:00
committed by Shauren
parent e79cb1da2c
commit 80d920dab5

View File

@@ -674,9 +674,13 @@ bool Creature::UpdateEntry(uint32 entry, CreatureData const* data /*= nullptr*/,
UpdateMovementFlags();
LoadCreaturesAddon();
LoadTemplateImmunities();
GetThreatManager().EvaluateSuppressed();
//We must update last scriptId or it looks like we reloaded a script, breaking some things such as gossip temporarily
LastUsedScriptID = GetScriptId();
return true;
}