mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 07:37:05 +00:00
[0179] Use aura holder plts in visible aura structures instead of uint32's.
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
This commit is contained in:
parent
5bb39bc73a
commit
8d93e79e29
6 changed files with 16 additions and 17 deletions
|
|
@ -8984,7 +8984,7 @@ void SpellAuraHolder::_RemoveSpellAuraHolder()
|
|||
if (slot >= MAX_AURAS) // slot not set
|
||||
return;
|
||||
|
||||
if (m_target->GetVisibleAura(slot) == 0)
|
||||
if (!m_target->GetVisibleAura(slot))
|
||||
return;
|
||||
|
||||
// unregister aura diminishing (and store last time)
|
||||
|
|
@ -9278,6 +9278,8 @@ void SpellAuraHolder::BuildUpdatePacket(WorldPacket& data) const
|
|||
if (auraFlags & (1 << i))
|
||||
if (Aura const* aura = m_auras[i])
|
||||
data << int32(aura->GetModifier()->m_amount);
|
||||
else
|
||||
data << int32(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue