Core/Units: remove excessive spam of animation tier spline update packets on every movement update

This commit is contained in:
Ovahlord committed 2020-09-28 19:33:14 +02:00
1 parent 059dff081c
commit 44be244ced
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -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));