From d334f9fab8d3ae8dd6217796c74186a049f129fe Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Thu, 9 Sep 2010 22:03:08 +0400 Subject: [PATCH] [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. --- src/game/Unit.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 1fd33fe32..da4a10df6 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 09d2ad145..96270b744 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10459" + #define REVISION_NR "10460" #endif // __REVISION_NR_H__