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

Member Function Documentation

◆ operator()()

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

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