fix(Core/EventScripts): Credit nearby group members when using the SCRIPT_COMMAND_QUEST_EXPLORED event_scripts command (#8378)

This commit is contained in:
Skjalf
2021-10-14 12:19:07 -03:00
committed by GitHub
parent 5d36c94a2d
commit b871bdc708

View File

@@ -566,7 +566,7 @@ void Map::ScriptsProcess()
// quest id and flags checked at script loading
if ((worldObject->GetTypeId() != TYPEID_UNIT || ((Unit*)worldObject)->IsAlive()) &&
(step.script->QuestExplored.Distance == 0 || worldObject->IsWithinDistInMap(player, float(step.script->QuestExplored.Distance))))
player->AreaExploredOrEventHappens(step.script->QuestExplored.QuestID);
player->GroupEventHappens(step.script->QuestExplored.QuestID, worldObject);
else
player->FailQuest(step.script->QuestExplored.QuestID);