AzeorthCore 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
1046 {
1047 if (creature->GetEntry() == NPC_SAC_WRETCHED_GHOUL && creature->GetDisplayId() != 11686 && creature->IsAlive())
1048 Unit::Kill(creature, creature);
1049 }
@ NPC_SAC_WRETCHED_GHOUL
Definition: zone_dragonblight.cpp:1010
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:17770
bool IsAlive() const
Definition: Unit.h:1806
uint32 GetDisplayId() const
Definition: Unit.h:2164

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