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

Member Function Documentation

◆ operator()()

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

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: