Core/Units: remove excessive spam of animation tier spline update packets on every movement update
This commit is contained in:
1 parent
059dff081c
commit
44be244ced
2 files changed
+5
-3
No files matched your search
@@ -10954,7 +10954,7 @@ bool Unit::IsPolymorphed() const
|
||||
|
||||
void Unit::SetAnimationTier(AnimationTier tier, bool immediate /* = true */)
|
||||
{
|
||||
if (!IsCreature())
|
||||
if (!IsCreature() || tier == GetAnimationTier())
|
||||
return;
|
||||
|
||||
SetByteValue(UNIT_FIELD_BYTES_1, UNIT_BYTES_1_OFFSET_ANIM_TIER, static_cast<uint8>(tier));
|
||||
|
||||
Reference in new issue
Block a user