mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
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
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user