mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 18:13:48 +00:00
fix(Core/Unit): Introduce animtier to malygos to fix flying animations (#24067)
This commit is contained in:
@@ -596,7 +596,7 @@ void Unit::UpdateSplineMovement(uint32 t_diff)
|
||||
DisableSpline();
|
||||
|
||||
if (movespline->HasAnimation() && IsCreature() && IsAlive())
|
||||
SetByteValue(UNIT_FIELD_BYTES_1, UNIT_BYTES_1_OFFSET_ANIM_TIER, movespline->GetAnimationType());
|
||||
SetAnimTier(AnimTier(movespline->GetAnimationType()));
|
||||
}
|
||||
|
||||
// pussywizard: update always! not every 400ms, because movement generators need the actual position
|
||||
@@ -15284,6 +15284,11 @@ float Unit::GetSpellMinRangeForTarget(Unit const* target, SpellInfo const* spell
|
||||
return spellInfo->GetMinRange(!IsHostileTo(target));
|
||||
}
|
||||
|
||||
void Unit::SetAnimTier(AnimTier animTier)
|
||||
{
|
||||
SetByteValue(UNIT_FIELD_BYTES_1, UNIT_BYTES_1_OFFSET_ANIM_TIER, uint8(animTier));
|
||||
}
|
||||
|
||||
uint32 Unit::GetCreatureType() const
|
||||
{
|
||||
if (IsPlayer())
|
||||
|
||||
Reference in New Issue
Block a user