Misc stuff

This commit is contained in:
hondacrx
2022-05-30 15:09:02 -04:00
parent 2472177ef6
commit af29d3158e
5 changed files with 36 additions and 26 deletions
+4 -4
View File
@@ -685,7 +685,7 @@ namespace Game.Entities
return IsInDist(obj, objBoundaryRadius);
}
public bool SetDisableGravity(bool disable, bool updateAnimationTier = true)
public bool SetDisableGravity(bool disable, bool updateAnimTier = true)
{
if (disable == IsGravityDisabled())
return false;
@@ -718,7 +718,7 @@ namespace Game.Entities
SendMessageToSet(packet, true);
}
if (IsCreature() && updateAnimationTier && IsAlive() && !HasUnitState(UnitState.Root) && !ToCreature().GetMovementTemplate().IsRooted())
if (IsCreature() && updateAnimTier && IsAlive() && !HasUnitState(UnitState.Root) && !ToCreature().GetMovementTemplate().IsRooted())
{
if (IsGravityDisabled())
SetAnimTier(AnimTier.Fly);
@@ -1047,7 +1047,7 @@ namespace Game.Entities
return true;
}
public bool SetHover(bool enable, bool updateAnimationTier = true)
public bool SetHover(bool enable, bool updateAnimTier = true)
{
if (enable == HasUnitMovementFlag(MovementFlag.Hover))
return false;
@@ -1093,7 +1093,7 @@ namespace Game.Entities
SendMessageToSet(packet, true);
}
if (IsCreature() && updateAnimationTier && IsAlive() && !HasUnitState(UnitState.Root) && !ToCreature().GetMovementTemplate().IsRooted())
if (IsCreature() && updateAnimTier && IsAlive() && !HasUnitState(UnitState.Root) && !ToCreature().GetMovementTemplate().IsRooted())
{
if (IsGravityDisabled())
SetAnimTier(AnimTier.Fly);