mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[8372] Prevent remove triggered spell auras by later applied parent spell auras.
This commit is contained in:
parent
9b0f5dba76
commit
a6503ac0a4
2 changed files with 8 additions and 3 deletions
|
|
@ -3603,9 +3603,14 @@ bool Unit::RemoveNoStackAurasDueToAura(Aura *Aur)
|
|||
if(i_spellId == spellId) continue;
|
||||
|
||||
bool is_triggered_by_spell = false;
|
||||
// prevent triggered aura of removing aura that triggered it
|
||||
// prevent triggering aura of removing aura that triggered it
|
||||
for(int j = 0; j < 3; ++j)
|
||||
if (i_spellProto->EffectTriggerSpell[j] == spellProto->Id)
|
||||
if (i_spellProto->EffectTriggerSpell[j] == spellId)
|
||||
is_triggered_by_spell = true;
|
||||
|
||||
// prevent triggered aura of removing aura that triggering it (triggered effect early some aura of parent spell
|
||||
for(int j = 0; j < 3; ++j)
|
||||
if (spellProto->EffectTriggerSpell[j] == i_spellId)
|
||||
is_triggered_by_spell = true;
|
||||
|
||||
if (is_triggered_by_spell)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8371"
|
||||
#define REVISION_NR "8372"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue