552{
553 auto primaryAmount = [](
Aura const* a) ->
int32
554 {
557 return eff->GetAmount();
558 return 0;
559 };
560
561 int32 auraAmount = std::abs(primaryAmount(aura));
562 int32 otherAmount = std::abs(primaryAmount(other));
563 if (auraAmount != otherAmount)
564 return auraAmount > otherAmount;
565
566 bool auraSelf = aura->GetCasterGUID() == target->GetGUID();
567 bool otherSelf = other->GetCasterGUID() == target->GetGUID();
568 if (auraSelf != otherSelf)
569 return auraSelf;
570
571 return aura->GetCasterGUID() < other->GetCasterGUID();
572}
#define MAX_SPELL_EFFECTS
Definition DBCStructure.h:1673
std::int32_t int32
Definition Define.h:103
std::uint8_t uint8
Definition Define.h:109
Definition SpellAuraEffects.h:39
Definition SpellAuras.h:88