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;
|
break;
|
||||||
case 24:
|
case 24:
|
||||||
Talk(WHISPER_CUSTODIAN_14, player);
|
Talk(WHISPER_CUSTODIAN_14, player);
|
||||||
DoCast(player, 34883);
|
if (Group* group = player->GetGroup())
|
||||||
// below here is temporary workaround, to be removed when spell works properly
|
{
|
||||||
player->AreaExploredOrEventHappens(10277);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MoveInLineOfSight(Unit* who) override
|
void MoveInLineOfSight(Unit* who) override
|
||||||
|
|
||||||
{
|
{
|
||||||
if (HasEscortState(STATE_ESCORT_ESCORTING))
|
if (HasEscortState(STATE_ESCORT_ESCORTING))
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user