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
9874{}

Member Function Documentation

◆ operator()()

bool MageSpellModPred::operator() ( SpellModifier const *  a,
SpellModifier const *  b 
) const
inline
9876 {
9877 if (a->type != b->type)
9878 return a->type == SPELLMOD_FLAT;
9879 if (a->spellId == 44401)
9880 return true;
9881 if (b->spellId == 44401)
9882 return false;
9883 return a->value < b->value;
9884 }
@ SPELLMOD_FLAT
Definition: Player.h:93

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