void MoveInLineOfSight(Unit* pWho) { FollowerAI::MoveInLineOfSight(pWho); if (!me->getVictim() && !HasFollowState(STATE_FOLLOW_COMPLETE) && pWho->GetEntry() == NPC_GELKAK) { if (me->IsWithinDistInMap(pWho, 10.0f)) { DoScriptText(SAY_AT_CLOSE, pWho); DoAtEnd(); } } }
void MoveInLineOfSight(Unit* who) { FollowerAI::MoveInLineOfSight(who); if (!me->getVictim() && !HasFollowState(STATE_FOLLOW_COMPLETE) && who->GetEntry() == NPC_GELKAK) { if (me->IsWithinDistInMap(who, 10.0f)) { Talk(SAY_AT_CLOSE, who->GetGUID()); DoAtEnd(); } } }