mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
fix(Core/Spells): Allow two paladins to activate the same aura (#26548)
This commit is contained in:
@@ -201,6 +201,11 @@ void AuraApplication::BuildUpdatePacket(ByteBuffer& data, bool remove) const
|
|||||||
uint32 flags = _flags;
|
uint32 flags = _flags;
|
||||||
if (aura->GetMaxDuration() > 0 && !aura->GetSpellInfo()->HasAttribute(SPELL_ATTR5_DO_NOT_DISPLAY_DURATION))
|
if (aura->GetMaxDuration() > 0 && !aura->GetSpellInfo()->HasAttribute(SPELL_ATTR5_DO_NOT_DISPLAY_DURATION))
|
||||||
flags |= AFLAG_DURATION;
|
flags |= AFLAG_DURATION;
|
||||||
|
|
||||||
|
// paladin auras are positive for self-cast only
|
||||||
|
if (!IsSelfcasted() && aura->GetSpellInfo()->GetSpellSpecific() == SPELL_SPECIFIC_AURA)
|
||||||
|
flags &= ~AFLAG_POSITIVE;
|
||||||
|
|
||||||
data << uint8(flags);
|
data << uint8(flags);
|
||||||
data << uint8(aura->GetCasterLevel());
|
data << uint8(aura->GetCasterLevel());
|
||||||
// send stack amount for aura which could be stacked (never 0 - causes incorrect display) or charges
|
// send stack amount for aura which could be stacked (never 0 - causes incorrect display) or charges
|
||||||
|
|||||||
Reference in New Issue
Block a user