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 }
@ NPC_SAC_WRETCHED_GHOUL
Definition: zone_dragonblight.cpp:990
uint32 GetEntry() const
Definition: Object.h:112
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:17703
bool IsAlive() const
Definition: Unit.h:1654
uint32 GetDisplayId() const
Definition: Unit.h:1837

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