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
192 {
193 if (!unit->IsPlayer())
194 if (!unit->ToUnit()->GetOwnerGUID().IsPlayer())
195 return true;
196
197 return false;
198 }
bool IsPlayer() const
Definition ObjectGuid.h:172
bool IsPlayer() const
Definition Object.h:207
Unit * ToUnit()
Definition Object.h:216
ObjectGuid GetOwnerGUID() const override
Definition Unit.h:719

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


The documentation for this class was generated from the following file: