mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 05:36:23 +00:00
fix(Scripts/Kalimdor): Cavern of Time custodian escort quest group completion (#20355)
* cast quest credit on group members * refactor group event * Revert "refactor group event" This reverts commit 36dff97740ac1e63c8f323a4dbea5bd92a73031d.
This commit is contained in:
@@ -242,16 +242,28 @@ public:
|
||||
break;
|
||||
case 24:
|
||||
Talk(WHISPER_CUSTODIAN_14, player);
|
||||
DoCast(player, 34883);
|
||||
// below here is temporary workaround, to be removed when spell works properly
|
||||
player->AreaExploredOrEventHappens(10277);
|
||||
if (Group* group = player->GetGroup())
|
||||
{
|
||||
for (GroupReference* itr = group->GetFirstMember(); itr != nullptr; itr = itr->next())
|
||||
{
|
||||
Player* player = itr->GetSource();
|
||||
|
||||
// for any leave or dead (with not released body) group member at appropriate distance
|
||||
if (player && player->IsAtGroupRewardDistance(me) && !player->GetCorpse())
|
||||
DoCast(player, 34883); // QID 10277
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DoCast(player, 34883); // QID 10277
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MoveInLineOfSight(Unit* who) override
|
||||
|
||||
{
|
||||
if (HasEscortState(STATE_ESCORT_ESCORTING))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user