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

Public Member Functions

 MageSpellModPred ()
 
bool operator() (SpellModifier const *a, SpellModifier const *b) const
 

Detailed Description

Constructor & Destructor Documentation

◆ MageSpellModPred()

MageSpellModPred::MageSpellModPred ( )
inline
9906{}

Member Function Documentation

◆ operator()()

bool MageSpellModPred::operator() ( SpellModifier const *  a,
SpellModifier const *  b 
) const
inline
9908 {
9909 if (a->type != b->type)
9910 return a->type == SPELLMOD_FLAT;
9911 if (a->spellId == 44401)
9912 return true;
9913 if (b->spellId == 44401)
9914 return false;
9915 return a->value < b->value;
9916 }
@ SPELLMOD_FLAT
Definition: Player.h:93

References SpellModifier::spellId, SPELLMOD_FLAT, SpellModifier::type, and SpellModifier::value.