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

Public Member Functions

 spellIdImmunityPredicate (uint32 type)
 
bool operator() (SpellImmune const &spellImmune)
 

Private Attributes

uint32 _type
 

Detailed Description

Constructor & Destructor Documentation

◆ spellIdImmunityPredicate()

spellIdImmunityPredicate::spellIdImmunityPredicate ( uint32  type)
inline
13382: _type(type) {}
uint32 _type
Definition: Unit.cpp:13386

Member Function Documentation

◆ operator()()

bool spellIdImmunityPredicate::operator() ( SpellImmune const &  spellImmune)
inline
13383{ return spellImmune.spellId == 0 && spellImmune.type == _type; }

References _type, SpellImmune::spellId, and SpellImmune::type.

Member Data Documentation

◆ _type

uint32 spellIdImmunityPredicate::_type
private

Referenced by operator()().