mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10186] Fixed visibility constant refresh problem with pet direct control spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
1ec05d4c4f
commit
a0ea5cde4d
2 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue