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

Public Member Functions

 NotInStomachSelector ()
 
bool operator() (Unit *unit) const
 

Detailed Description

Constructor & Destructor Documentation

◆ NotInStomachSelector()

NotInStomachSelector::NotInStomachSelector ( )
inline
122{ }

Member Function Documentation

◆ operator()()

bool NotInStomachSelector::operator() ( Unit unit) const
inline
125 {
126 return unit->IsPlayer() && !unit->HasAura(SPELL_DIGESTIVE_ACID) && (unit->GetPositionZ() > 0.0f);
127 }
@ SPELL_DIGESTIVE_ACID
Definition: boss_cthun.cpp:63
bool IsPlayer() const
Definition: Object.h:200
float GetPositionZ() const
Definition: Position.h:118
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5698

References Position::GetPositionZ(), Unit::HasAura(), Object::IsPlayer(), and SPELL_DIGESTIVE_ACID.