Core/Creatures: do not update animation tiers when updating movement flags
* Animation tiers are mostly involved in scripts so we do not handle them in generic movement updates
This commit is contained in:
1 parent
d66cda0c4d
commit
101f57c835
1 file changed
+3
-3
@@ -2882,7 +2882,7 @@ void Creature::UpdateMovementFlags()
|
||||
if (GetMovementTemplate().Flight == CreatureFlightMovementType::CanFly)
|
||||
SetCanFly(true);
|
||||
else
|
||||
SetDisableGravity(true);
|
||||
SetDisableGravity(true, false, false);
|
||||
|
||||
if (!HasAuraType(SPELL_AURA_HOVER))
|
||||
SetHover(false);
|
||||
@@ -2890,9 +2890,9 @@ void Creature::UpdateMovementFlags()
|
||||
else
|
||||
{
|
||||
SetCanFly(false);
|
||||
SetDisableGravity(false);
|
||||
SetDisableGravity(false, false, false);
|
||||
if ((IsAlive() && CanHover()) || HasAuraType(SPELL_AURA_HOVER))
|
||||
SetHover(true);
|
||||
SetHover(true, false, false);
|
||||
}
|
||||
|
||||
if (!isInAir)
|
||||
|
||||
Reference in new issue
Block a user