diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index b1f62a91c..582cc336c 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -3669,7 +3669,7 @@ void Unit::SetInFront(Unit const* target) SetOrientation(GetAngle(target)); } -void Unit::SetFacingTo(float ori) +void Unit::SetFacingTo(float ori, bool bToSelf /*= false*/) { // update orientation at server SetOrientation(ori); @@ -3677,7 +3677,7 @@ void Unit::SetFacingTo(float ori) // and client WorldPacket data; BuildHeartBeatMsg(&data); - SendMessageToSet(&data, false); + SendMessageToSet(&data, bToSelf); } // Consider move this to Creature:: since only creature appear to be able to use this diff --git a/src/game/Unit.h b/src/game/Unit.h index d04f8f176..0a859298f 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -1668,7 +1668,7 @@ class MANGOS_DLL_SPEC Unit : public WorldObject void SetBaseWeaponDamage(WeaponAttackType attType ,WeaponDamageRange damageRange, float value) { m_weaponDamage[attType][damageRange] = value; } void SetInFront(Unit const* target); - void SetFacingTo(float ori); + void SetFacingTo(float ori, bool bToSelf = false); void SetFacingToObject(WorldObject* pObject); // Visibility system diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 08fcd6aea..5c6d68f2d 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 "10556" + #define REVISION_NR "10557" #endif // __REVISION_NR_H__