mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[8358] Prevent crash and not appropriate boosts apply at aura boosts proccesing.
This commit is contained in:
parent
0bbc496192
commit
aef24b3748
2 changed files with 9 additions and 4 deletions
|
|
@ -5600,15 +5600,18 @@ void Aura::HandleSpellSpecificBoosts(bool apply)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// prevent aura deletion, specially in multi-boost case
|
||||||
|
SetInUse(true);
|
||||||
|
|
||||||
if (apply)
|
if (apply)
|
||||||
{
|
{
|
||||||
if (spellId1)
|
if (spellId1)
|
||||||
m_target->CastSpell(m_target, spellId1, true, NULL, this);
|
m_target->CastSpell(m_target, spellId1, true, NULL, this);
|
||||||
if (spellId2)
|
if (spellId2 && !IsDeleted())
|
||||||
m_target->CastSpell(m_target, spellId2, true, NULL, this);
|
m_target->CastSpell(m_target, spellId2, true, NULL, this);
|
||||||
if (spellId3)
|
if (spellId3 && !IsDeleted())
|
||||||
m_target->CastSpell(m_target, spellId3, true, NULL, this);
|
m_target->CastSpell(m_target, spellId3, true, NULL, this);
|
||||||
if (spellId4)
|
if (spellId4 && !IsDeleted())
|
||||||
m_target->CastSpell(m_target, spellId4, true, NULL, this);
|
m_target->CastSpell(m_target, spellId4, true, NULL, this);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -5622,6 +5625,8 @@ void Aura::HandleSpellSpecificBoosts(bool apply)
|
||||||
if (spellId4)
|
if (spellId4)
|
||||||
m_target->RemoveAurasByCasterSpell(spellId4, GetCasterGUID());
|
m_target->RemoveAurasByCasterSpell(spellId4, GetCasterGUID());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetInUse(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Aura::HandleAuraEmpathy(bool apply, bool /*Real*/)
|
void Aura::HandleAuraEmpathy(bool apply, bool /*Real*/)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8357"
|
#define REVISION_NR "8358"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue