void MoveInLineOfSight(Unit* pWho) { if (PlayerGUID || pWho->GetTypeId() != TYPEID_PLAYER || !pWho->IsWithinDist(me, INTERACTION_DISTANCE)) return; if (MeetQuestCondition(pWho)) PlayerGUID = pWho->GetGUID(); }
void MoveInLineOfSight(Unit* pWho) { if (m_playerGuid || pWho->GetTypeId() != TYPEID_PLAYER || !pWho->IsWithinDist(m_creature, INTERACTION_DISTANCE)) return; if (MeetQuestCondition((Player*)pWho)) m_playerGuid = pWho->GetObjectGuid(); }
void MoveInLineOfSight(Unit* who) override { if (!PlayerGUID.IsEmpty() || who->GetTypeId() != TYPEID_PLAYER || !who->IsWithinDist(me, INTERACTION_DISTANCE)) return; if (MeetQuestCondition(who->ToPlayer())) PlayerGUID = who->GetGUID(); }