[10186] Fixed visibility constant refresh problem with pet direct control spells.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
SilverIce 2010-07-13 02:11:10 +04:00 committed by VladimirMangos
parent 1ec05d4c4f
commit a0ea5cde4d
2 changed files with 5 additions and 1 deletions

View file

@ -3425,6 +3425,8 @@ void Aura::HandleModPossessPet(bool apply, bool Real)
if (apply) if (apply)
{ {
target->addUnitState(UNIT_STAT_CONTROLLED);
camera.SetView(pet); camera.SetView(pet);
p_caster->SetCharm(pet); p_caster->SetCharm(pet);
p_caster->SetClientControl(pet, 1); p_caster->SetClientControl(pet, 1);
@ -3447,6 +3449,8 @@ void Aura::HandleModPossessPet(bool apply, bool Real)
if(m_removeMode == AURA_REMOVE_BY_DELETE) if(m_removeMode == AURA_REMOVE_BY_DELETE)
return; return;
pet->clearUnitState(UNIT_STAT_CONTROLLED);
pet->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PLAYER_CONTROLLED); pet->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PLAYER_CONTROLLED);
pet->AttackStop(); pet->AttackStop();

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 "10185" #define REVISION_NR "10186"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__