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
+1
View File
@@ -3746,6 +3746,7 @@ namespace Game.Spells
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);