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

Public Member Functions

bool operator() (WorldObject *object) const
 

Detailed Description

Member Function Documentation

◆ operator()()

bool DoorsGuidCheck::operator() ( WorldObject object) const
inline
544 {
545 if (object->GetTypeId() != TYPEID_UNIT)
546 return true;
547
548 Creature* cr = object->ToCreature();
549 return cr->GetSpawnId() != 54780 && cr->GetSpawnId() != 54787 && cr->GetSpawnId() != 54801;
550 }
@ TYPEID_UNIT
Definition: ObjectGuid.h:37
Definition: Creature.h:46
ObjectGuid::LowType GetSpawnId() const
Definition: Creature.h:67
TypeID GetTypeId() const
Definition: Object.h:121
Creature * ToCreature()
Definition: Object.h:197

References Creature::GetSpawnId(), Object::GetTypeId(), Object::ToCreature(), and TYPEID_UNIT.