Core/Units: Send PlayHoverAnim state in CreateObject if enabled by Unit::SetPlayHoverAnim

This commit is contained in:
Shauren
2021-12-04 12:45:46 +01:00
parent 505fde8e2c
commit 7e779a6f59
3 changed files with 12 additions and 3 deletions
@@ -162,8 +162,12 @@ void Object::BuildCreateUpdateBlockForPlayer(UpdateData* data, Player* target) c
}
if (Unit const* unit = ToUnit())
{
flags.PlayHoverAnim = unit->IsPlayingHoverAnim();
if (unit->GetVictim())
flags.CombatVictim = true;
}
ByteBuffer buf(0x400, ByteBuffer::Reserve{});
buf << uint8(updateType);