mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[10315] Make AuraHolder::IsDeleted() really work.
In fact it has been broken originally when added in Aura long before move it to AuraHolder. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
685edfe7e2
commit
d31ce2e2a3
4 changed files with 8 additions and 6 deletions
|
|
@ -7735,12 +7735,9 @@ void SpellAuraHolder::RemoveAura(SpellEffectIndex index)
|
|||
|
||||
void SpellAuraHolder::ApplyAuraModifiers(bool apply, bool real)
|
||||
{
|
||||
for (int32 i = 0; i < MAX_EFFECT_INDEX; ++i)
|
||||
{
|
||||
Aura *aur = GetAuraByEffectIndex(SpellEffectIndex(i));
|
||||
if (aur)
|
||||
for (int32 i = 0; i < MAX_EFFECT_INDEX && !IsDeleted(); ++i)
|
||||
if (Aura *aur = GetAuraByEffectIndex(SpellEffectIndex(i)))
|
||||
aur->ApplyModifier(apply, real);
|
||||
}
|
||||
}
|
||||
|
||||
void SpellAuraHolder::_AddSpellAuraHolder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue