aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSnapperRy <snapperryen@gmail.com>2016-09-14 20:27:32 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-26 21:31:16 +0100
commit1b288ebbddeeab2934f3a4bd44521ed4378ae091 (patch)
tree9e8e435569268b9ad317768ffc9885e10bc804a6 /src
parentcedd5dcfe562ce17326ea604e7f88df1ab13443b (diff)
Core/SmartAI: do not target player's group for SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS.
SMART_TARGET_INVOKER_PARTY or SMART_ACTION_CALL_GROUPEVENTHAPPENS should instead be used to achieve this functionality. (cherry picked from commit 6586885bcaf062c5f0fd6d6c7652b93c08e7c20c)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index c21c3b8fe45..4cf1360c938 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -470,7 +470,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
if (IsPlayer(*itr))
{
- (*itr)->ToPlayer()->GroupEventHappens(e.action.quest.quest, me);
+ (*itr)->ToPlayer()->AreaExploredOrEventHappens(e.action.quest.quest);
TC_LOG_DEBUG("scripts.ai", "SmartScript::ProcessAction:: SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS: %s credited quest %u",
(*itr)->GetGUID().ToString().c_str(), e.action.quest.quest);