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 6586885bca)
This commit is contained in:
SnapperRy
2016-09-14 20:27:32 +02:00
committed by joschiwald
parent cedd5dcfe5
commit 1b288ebbdd

View File

@@ -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);