TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Trinity::AbsorbAuraOrderPred Class Reference

#include <SpellAuraEffects.h>

Public Member Functions

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

Constructor & Destructor Documentation

Trinity::AbsorbAuraOrderPred::AbsorbAuraOrderPred ( )
inline
337 { }

Member Function Documentation

bool Trinity::AbsorbAuraOrderPred::operator() ( AuraEffect aurEffA,
AuraEffect aurEffB 
) const
inline
339  {
340  SpellInfo const* spellProtoA = aurEffA->GetSpellInfo();
341  SpellInfo const* spellProtoB = aurEffB->GetSpellInfo();
342 
343  // Wards
344  if ((spellProtoA->SpellFamilyName == SPELLFAMILY_MAGE) ||
345  (spellProtoA->SpellFamilyName == SPELLFAMILY_WARLOCK))
346  if (spellProtoA->GetCategory() == 56)
347  return true;
348  if ((spellProtoB->SpellFamilyName == SPELLFAMILY_MAGE) ||
349  (spellProtoB->SpellFamilyName == SPELLFAMILY_WARLOCK))
350  if (spellProtoB->GetCategory() == 56)
351  return false;
352 
353  // Sacred Shield
354  if (spellProtoA->Id == 58597)
355  return true;
356  if (spellProtoB->Id == 58597)
357  return false;
358 
359  // Fel Blossom
360  if (spellProtoA->Id == 28527)
361  return true;
362  if (spellProtoB->Id == 28527)
363  return false;
364 
365  // Divine Aegis
366  if (spellProtoA->Id == 47753)
367  return true;
368  if (spellProtoB->Id == 47753)
369  return false;
370 
371  // Ice Barrier
372  if (spellProtoA->GetCategory() == 471)
373  return true;
374  if (spellProtoB->GetCategory() == 471)
375  return false;
376 
377  // Sacrifice
378  if ((spellProtoA->SpellFamilyName == SPELLFAMILY_WARLOCK) &&
379  (spellProtoA->SpellIconID == 693))
380  return true;
381  if ((spellProtoB->SpellFamilyName == SPELLFAMILY_WARLOCK) &&
382  (spellProtoB->SpellIconID == 693))
383  return false;
384 
385  return false;
386  }
uint32 Id
Definition: SpellInfo.h:329
SpellInfo const * GetSpellInfo() const
Definition: SpellAuraEffects.h:46
uint32 GetCategory() const
Definition: SpellInfo.cpp:1164
Definition: SpellInfo.h:326
Definition: SharedDefines.h:4628
Definition: SharedDefines.h:4626
uint32 SpellFamilyName
Definition: SpellInfo.h:396
uint32 SpellIconID
Definition: SpellInfo.h:390

+ Here is the call graph for this function:


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