From 88efd1f18acd12472412948919c5b27f38f3df9f Mon Sep 17 00:00:00 2001 From: Astellar Date: Fri, 25 Sep 2009 23:21:25 +0300 Subject: [PATCH] [8539] Check pet aura range at area aura update Signed-off-by: Ambal --- src/game/SpellAuras.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index bc18d132d..1d7a43a48 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -784,7 +784,7 @@ void AreaAura::Update(uint32 diff) case AREA_AURA_OWNER: case AREA_AURA_PET: { - if(owner != caster) + if(owner != caster && caster->IsWithinDistInMap(owner, m_radius)) targets.push_back(owner); break; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index f0bbcc4a4..81e70c6d3 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 "8538" + #define REVISION_NR "8539" #endif // __REVISION_NR_H__