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
1047 {
1048 if (creature->GetEntry() == NPC_SAC_WRETCHED_GHOUL && creature->GetDisplayId() != 11686 && creature->IsAlive())
1049 Unit::Kill(creature, creature);
1050 }
@ NPC_SAC_WRETCHED_GHOUL
Definition: zone_dragonblight.cpp:1011
uint32 GetEntry() const
Definition: Object.h:109
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:17862
bool IsAlive() const
Definition: Unit.h:1808
uint32 GetDisplayId() const
Definition: Unit.h:2168

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