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
1469: _alive(alive) {}
bool _alive
Definition: zone_dragonblight.cpp:1475

Member Function Documentation

◆ operator()()

bool GhoulTargetCheck::operator() ( WorldObject object) const
inline
1471 {
1472 return _alive ^ (!object->IsCreature() || ((Unit*)object)->GetDisplayId() != 11686);
1473 }
Definition: Unit.h:630

References _alive.

Member Data Documentation

◆ _alive

bool GhoulTargetCheck::_alive
private

Referenced by operator()().