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

Public Member Functions

 GhoulTargetCheck (bool alive)
 
bool operator() (WorldObject *object) const
 

Private Attributes

bool _alive
 

Detailed Description

Constructor & Destructor Documentation

◆ GhoulTargetCheck()

GhoulTargetCheck::GhoulTargetCheck ( bool  alive)
inlineexplicit
1490: _alive(alive) {}
bool _alive
Definition: zone_dragonblight.cpp:1496

Member Function Documentation

◆ operator()()

bool GhoulTargetCheck::operator() ( WorldObject object) const
inline
1492 {
1493 return _alive ^ (object->GetTypeId() != TYPEID_UNIT || ((Unit*)object)->GetDisplayId() != 11686);
1494 }
@ TYPEID_UNIT
Definition: ObjectGuid.h:37
Definition: Unit.h:1290

References _alive, and TYPEID_UNIT.

Member Data Documentation

◆ _alive

bool GhoulTargetCheck::_alive
private

Referenced by operator()().