public void UpdateActionPoints(long Tick) { if (Tick >= NextApRegen) { if (AbtInterface.IsOnGlobalCooldown()) { NextApRegen = Tick + 300; return; } NextApRegen = Tick + ACTION_REGEN_TIME; if (ActionPoints < MaxActionPoints) { ActionPoints += 25; if (ActionPoints > MaxActionPoints) { ActionPoints = MaxActionPoints; } } } }