536{
537 auto primaryAmount = [](
Aura const* a) ->
int32
538 {
541 return eff->GetAmount();
542 return 0;
543 };
544
545 int32 auraAmount = std::abs(primaryAmount(aura));
546 int32 otherAmount = std::abs(primaryAmount(other));
547 if (auraAmount != otherAmount)
548 return auraAmount > otherAmount;
549
550 bool auraSelf = aura->GetCasterGUID() == target->GetGUID();
551 bool otherSelf = other->GetCasterGUID() == target->GetGUID();
552 if (auraSelf != otherSelf)
553 return auraSelf;
554
555 return aura->GetCasterGUID() < other->GetCasterGUID();
556}
#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