diff options
author | ModoX <moardox@gmail.com> | 2024-01-08 21:51:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-08 21:51:46 +0100 |
commit | b3dce0ac08d4f740505037aff2cad7685444db15 (patch) | |
tree | 1928871f286cf3258fb0585f70ce4d85c3f9da4e /src/server/scripts/Commands | |
parent | e8849ca5a14719e7d395db7907bac26705f25dbf (diff) |
Core/Creatures: Added possibility to automatically despawn personal summons on quest remove (#29114)
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r-- | src/server/scripts/Commands/cs_quest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_quest.cpp b/src/server/scripts/Commands/cs_quest.cpp index 22ff3c39bd7..3dd04ef8eea 100644 --- a/src/server/scripts/Commands/cs_quest.cpp +++ b/src/server/scripts/Commands/cs_quest.cpp @@ -137,6 +137,7 @@ public: } player->RemoveActiveQuest(quest->GetQuestId(), false); player->RemoveRewardedQuest(quest->GetQuestId()); + player->DespawnPersonalSummonsForQuest(quest->GetQuestId()); sScriptMgr->OnQuestStatusChange(player, quest->GetQuestId()); sScriptMgr->OnQuestStatusChange(player, quest, oldStatus, QUEST_STATUS_NONE); |