aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-07-17 13:40:55 +0200
committerShauren <shauren.trinity@gmail.com>2025-07-17 13:40:55 +0200
commit0953d97533a24a57f69513e2d127eeb39faa9602 (patch)
tree8ea4a90f174376acd62d7cce60b0e2f37efd7359
parente9e7059a23618e58e57dc3b24eb218505ca3f746 (diff)
Core/SAI: Fix SMART_ACTION_OFFER_QUEST - now tracks npc interaction correctly
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index dd4c844bd27..44cf119f77c 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -500,12 +500,8 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
{
if (player->CanTakeQuest(q, true))
{
- if (WorldSession* session = player->GetSession())
- {
- PlayerMenu menu(session);
- menu.SendQuestGiverQuestDetails(q, me->GetGUID(), true, false);
- TC_LOG_DEBUG("scripts.ai", "SmartScript::ProcessAction:: SMART_ACTION_OFFER_QUEST: Player {} - offering quest {}", player->GetGUID().ToString(), e.action.questOffer.questID);
- }
+ player->PlayerTalkClass->SendQuestGiverQuestDetails(q, me->GetGUID(), true, false);
+ TC_LOG_DEBUG("scripts.ai", "SmartScript::ProcessAction:: SMART_ACTION_OFFER_QUEST: Player {} - offering quest {}", player->GetGUID(), e.action.questOffer.questID);
}
}
else