From 91e520a7e250dbb6c4c217019f8951f5ed9d9567 Mon Sep 17 00:00:00 2001 From: gmriggs Date: Sat, 28 Feb 2026 16:10:58 -0500 Subject: [PATCH] sync AugmentationFasterRegen up with retail --- Source/ACE.Server/WorldObjects/Creature_Vitals.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/ACE.Server/WorldObjects/Creature_Vitals.cs b/Source/ACE.Server/WorldObjects/Creature_Vitals.cs index 4f33a9d6e3..a662b46843 100644 --- a/Source/ACE.Server/WorldObjects/Creature_Vitals.cs +++ b/Source/ACE.Server/WorldObjects/Creature_Vitals.cs @@ -127,7 +127,7 @@ public bool VitalHeartBeat(CreatureVital vital) var enchantmentMod = EnchantmentManager.GetRegenerationMod(vital); var augMod = 1.0f; - if (this is Player player && player.AugmentationFasterRegen > 0) + if (this is Player player && player.AugmentationFasterRegen > 0 && ForwardCommand == MotionCommand.Sleeping) augMod += player.AugmentationFasterRegen; // cap rate? @@ -200,6 +200,9 @@ public float GetAttributeMod(CreatureVital vital) return attributeMod; } + private MotionCommand ForwardCommand => CurrentMovementData.MovementType == MovementType.Invalid && CurrentMovementData.Invalid != null ? + CurrentMovementData.Invalid.State.ForwardCommand : MotionCommand.Invalid; + /// /// Returns the vital regeneration modifier based on player stance /// (combat, crouch, sitting, sleeping) @@ -212,7 +215,7 @@ public float GetStanceMod(CreatureVital vital) // does not apply for mana? if (vital.Vital == PropertyAttribute2nd.MaxMana) return 1.0f; - var forwardCommand = CurrentMovementData.MovementType == MovementType.Invalid && CurrentMovementData.Invalid != null ? CurrentMovementData.Invalid.State.ForwardCommand : MotionCommand.Invalid; + var forwardCommand = ForwardCommand; // combat mode / running if (CombatMode != CombatMode.NonCombat || forwardCommand == MotionCommand.RunForward)