fix(Core/EventScripts): Credit nearby group members when using the SCRIPT_COMMAND_QUEST_EXPLORED event_scripts command (#8378)
This commit is contained in:
parent
5d36c94a2d
commit
b871bdc708
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue