From a0ea5cde4d3262fa2f0989041ee1d1b711caf451 Mon Sep 17 00:00:00 2001 From: SilverIce Date: Tue, 13 Jul 2010 02:11:10 +0400 Subject: [PATCH] [10186] Fixed visibility constant refresh problem with pet direct control spells. Signed-off-by: VladimirMangos --- src/game/SpellAuras.cpp | 4 ++++ src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 18b2e25e0..7094f526e 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -3425,6 +3425,8 @@ void Aura::HandleModPossessPet(bool apply, bool Real) if (apply) { + target->addUnitState(UNIT_STAT_CONTROLLED); + camera.SetView(pet); p_caster->SetCharm(pet); p_caster->SetClientControl(pet, 1); @@ -3447,6 +3449,8 @@ void Aura::HandleModPossessPet(bool apply, bool Real) if(m_removeMode == AURA_REMOVE_BY_DELETE) return; + pet->clearUnitState(UNIT_STAT_CONTROLLED); + pet->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PLAYER_CONTROLLED); pet->AttackStop(); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index dadc38db6..676de5185 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 "10185" + #define REVISION_NR "10186" #endif // __REVISION_NR_H__