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

Public Member Functions

void operator() (Creature *creature)
 

Detailed Description

Member Function Documentation

◆ operator()()

void WretchedGhoulCleaner::operator() ( Creature creature)
inline
1026 {
1027 if (creature->GetEntry() == NPC_SAC_WRETCHED_GHOUL && creature->GetDisplayId() != 11686 && creature->IsAlive())
1028 Unit::Kill(creature, creature);
1029 }
uint32 GetEntry() const
Definition Object.h:115
static void Kill(Unit *killer, Unit *victim, bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr)
Definition Unit.cpp:17754
bool IsAlive() const
Definition Unit.h:1707
uint32 GetDisplayId() const
Definition Unit.h:1887
@ NPC_SAC_WRETCHED_GHOUL
Definition zone_dragonblight.cpp:990

References Unit::GetDisplayId(), Object::GetEntry(), Unit::IsAlive(), Unit::Kill(), and NPC_SAC_WRETCHED_GHOUL.


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