AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
PlayerOrPetCheck Class Reference

#include "ScriptedCreature.h"

Public Member Functions

bool operator() (WorldObject *unit) const
 

Detailed Description

Member Function Documentation

◆ operator()()

bool PlayerOrPetCheck::operator() ( WorldObject unit) const
inline
180 {
181 if (!unit->IsPlayer())
182 if (!unit->ToUnit()->GetOwnerGUID().IsPlayer())
183 return true;
184
185 return false;
186 }
bool IsPlayer() const
Definition: Object.h:197
Unit * ToUnit()
Definition: Object.h:206
bool IsPlayer() const
Definition: ObjectGuid.h:168
ObjectGuid GetOwnerGUID() const
Definition: Unit.h:1157

References Unit::GetOwnerGUID(), Object::IsPlayer(), ObjectGuid::IsPlayer(), and Object::ToUnit().