[10460] Fixed unexpected area aura stacking from same caster at spellmods reapply.

In fact it general problem possible with area auras if it re-casted
non-standard way from code. But known only test case for mangos-0.12 branch.

Thanks to ciphercom for reportand original research of problem source.
This commit is contained in:
VladimirMangos 2010-09-09 22:03:08 +04:00
parent 77148f0e60
commit d334f9fab8
2 changed files with 2 additions and 2 deletions

View file

@ -3844,7 +3844,7 @@ bool Unit::AddSpellAuraHolder(SpellAuraHolder *holder)
}
// passive and persistent auras can stack with themselves any number of times
if (!holder->IsPassive() && !holder->IsPersistent())
if (!holder->IsPassive() && !holder->IsPersistent() || holder->IsAreaAura())
{
SpellAuraHolderBounds spair = GetSpellAuraHolderBounds(aurSpellInfo->Id);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10459"
#define REVISION_NR "10460"
#endif // __REVISION_NR_H__