fix(Core/EventScripts): Credit nearby group members when using the SCRIPT_COMMAND_QUEST_EXPLORED event_scripts command (#8378)
This commit is contained in:
@@ -566,7 +566,7 @@ void Map::ScriptsProcess()
|
|||||||
// quest id and flags checked at script loading
|
// quest id and flags checked at script loading
|
||||||
if ((worldObject->GetTypeId() != TYPEID_UNIT || ((Unit*)worldObject)->IsAlive()) &&
|
if ((worldObject->GetTypeId() != TYPEID_UNIT || ((Unit*)worldObject)->IsAlive()) &&
|
||||||
(step.script->QuestExplored.Distance == 0 || worldObject->IsWithinDistInMap(player, float(step.script->QuestExplored.Distance))))
|
(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
|
else
|
||||||
player->FailQuest(step.script->QuestExplored.QuestID);
|
player->FailQuest(step.script->QuestExplored.QuestID);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user