fix(Core/SAI): Fix SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS not working with gameobject sources if the player is in group (#8234)

This commit is contained in:
Skjalf
2021-10-07 08:08:07 -03:00
committed by GitHub
parent 32e7bd3d52
commit cdb45a7ef1

View File

@@ -682,7 +682,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
if (Player* player = (*itr)->ToUnit()->GetCharmerOrOwnerPlayerOrPlayerItself())
{
player->GroupEventHappens(e.action.quest.quest, me);
player->GroupEventHappens(e.action.quest.quest, GetBaseObject());
LOG_DEBUG("sql.sql", "SmartScript::ProcessAction:: SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS: Player %s credited quest %u",
(*itr)->GetGUID().ToString().c_str(), e.action.quest.quest);
}