AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::AbsorbAuraOrderPred Class Reference

#include "SpellAuraEffects.h"

Public Member Functions

 AbsorbAuraOrderPred ()
 
bool operator() (AuraEffect *aurEffA, AuraEffect *aurEffB) const
 

Detailed Description

Constructor & Destructor Documentation

◆ AbsorbAuraOrderPred()

Acore::AbsorbAuraOrderPred::AbsorbAuraOrderPred ( )
inline
353{ }

Member Function Documentation

◆ operator()()

bool Acore::AbsorbAuraOrderPred::operator() ( AuraEffect aurEffA,
AuraEffect aurEffB 
) const
inline
355 {
356 SpellInfo const* spellProtoA = aurEffA->GetSpellInfo();
357 SpellInfo const* spellProtoB = aurEffB->GetSpellInfo();
358
359 // Wards
360 if ((spellProtoA->SpellFamilyName == SPELLFAMILY_MAGE) ||
361 (spellProtoA->SpellFamilyName == SPELLFAMILY_WARLOCK))
362 if (spellProtoA->GetCategory() == 56)
363 return true;
364 if ((spellProtoB->SpellFamilyName == SPELLFAMILY_MAGE) ||
365 (spellProtoB->SpellFamilyName == SPELLFAMILY_WARLOCK))
366 if (spellProtoB->GetCategory() == 56)
367 return false;
368
369 // Sacred Shield
370 if (spellProtoA->Id == 58597)
371 return true;
372 if (spellProtoB->Id == 58597)
373 return false;
374
375 // Fel Blossom
376 if (spellProtoA->Id == 28527)
377 return true;
378 if (spellProtoB->Id == 28527)
379 return false;
380
381 // Divine Aegis
382 if (spellProtoA->Id == 47753)
383 return true;
384 if (spellProtoB->Id == 47753)
385 return false;
386
387 // Ice Barrier
388 if (spellProtoA->GetCategory() == 471)
389 return true;
390 if (spellProtoB->GetCategory() == 471)
391 return false;
392
393 // Sacrifice
394 if ((spellProtoA->SpellFamilyName == SPELLFAMILY_WARLOCK) &&
395 (spellProtoA->SpellIconID == 693))
396 return true;
397 if ((spellProtoB->SpellFamilyName == SPELLFAMILY_WARLOCK) &&
398 (spellProtoB->SpellIconID == 693))
399 return false;
400
401 return false;
402 }
@ SPELLFAMILY_WARLOCK
Definition SharedDefines.h:3791
@ SPELLFAMILY_MAGE
Definition SharedDefines.h:3789
SpellInfo const * GetSpellInfo() const
Definition SpellAuraEffects.h:54
Definition SpellInfo.h:340
uint32 GetCategory() const
Definition SpellInfo.cpp:880
uint32 Id
Definition SpellInfo.h:344
uint32 SpellIconID
Definition SpellInfo.h:404
uint32 SpellFamilyName
Definition SpellInfo.h:411

References SpellInfo::GetCategory(), AuraEffect::GetSpellInfo(), SpellInfo::Id, SPELLFAMILY_MAGE, SPELLFAMILY_WARLOCK, SpellInfo::SpellFamilyName, and SpellInfo::SpellIconID.


The documentation for this class was generated from the following file: