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

Member Function Documentation

◆ operator()()

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