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
1049 {
1050 if (creature->GetEntry() == NPC_SAC_WRETCHED_GHOUL && creature->GetDisplayId() != 11686 && creature->IsAlive())
1051 Unit::Kill(creature, creature);
1052 }
@ NPC_SAC_WRETCHED_GHOUL
Definition: zone_dragonblight.cpp:1013
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:17956
bool IsAlive() const
Definition: Unit.h:1822
uint32 GetDisplayId() const
Definition: Unit.h:2182

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