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

Member Function Documentation

◆ operator()()

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