Core/Creatures: Implemented UNIT_NPC_FLAG_GOSSIP as viewer dependent and update npcflags on quest changes

Port From (https://github.com/TrinityCore/TrinityCore/commit/dd15d763cc0529afc9b7f077817645d875608626)
This commit is contained in:
hondacrx
2024-02-24 16:07:23 -05:00
parent 3eca0ad68c
commit fa5e0f0c14
6 changed files with 92 additions and 2 deletions
@@ -112,6 +112,8 @@ namespace Game.Chat
Global.ScriptMgr.OnQuestStatusChange(player, quest.Id);
Global.ScriptMgr.OnQuestStatusChange(player, quest, oldStatus, QuestStatus.None);
player.UpdateNearbyCreatureNpcFlags();
handler.SendSysMessage(CypherStrings.CommandQuestRemoved);
return true;
}