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
545 {
546 if (object->GetTypeId() != TYPEID_UNIT)
547 return true;
548
549 Creature* cr = object->ToCreature();
550 return cr->GetSpawnId() != 54780 && cr->GetSpawnId() != 54787 && cr->GetSpawnId() != 54801;
551 }
@ 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.