[8539] Check pet aura range at area aura update

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Astellar 2009-09-25 23:21:25 +03:00 committed by tomrus88
parent 8c276365ba
commit 88efd1f18a
2 changed files with 2 additions and 2 deletions

View file

@ -784,7 +784,7 @@ void AreaAura::Update(uint32 diff)
case AREA_AURA_OWNER: case AREA_AURA_OWNER:
case AREA_AURA_PET: case AREA_AURA_PET:
{ {
if(owner != caster) if(owner != caster && caster->IsWithinDistInMap(owner, m_radius))
targets.push_back(owner); targets.push_back(owner);
break; break;
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8538" #define REVISION_NR "8539"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__