Core/Creatures: Added possibility to automatically despawn personal summons on quest remove

Port From (https://github.com/TrinityCore/TrinityCore/commit/b3dce0ac08d4f740505037aff2cad7685444db15)
This commit is contained in:
hondacrx
2024-02-05 17:36:50 -05:00
parent 9546ef12eb
commit aa696fb176
7 changed files with 52 additions and 5 deletions
@@ -107,6 +107,7 @@ namespace Game.Chat
player.RemoveActiveQuest(quest.Id, false);
player.RemoveRewardedQuest(quest.Id);
player.DespawnPersonalSummonsForQuest(quest.Id);
Global.ScriptMgr.OnQuestStatusChange(player, quest.Id);
Global.ScriptMgr.OnQuestStatusChange(player, quest, oldStatus, QuestStatus.None);