From 24ebce6f84b7d1646777c55ed231360dec0f1916 Mon Sep 17 00:00:00 2001 From: Sergi Rosell <50594106+srosellj@users.noreply.github.com> Date: Sat, 17 Oct 2026 22:58:04 +0200 Subject: [PATCH] fix(ai): swap GetDelay bounds so min is the lower one (#2711) GetDelay sets min to 6.0 - del * 0.75 and max to 6.0 - del * 1.25, so for any Magery above zero min is the larger value. The draw min + (max - min) * r still covers the right interval, but it runs downward and the names say the opposite. Swap the two definitions so min is the lower bound. The interval and its uniform distribution do not change; for a given random draw the delay comes out mirrored. --- Projects/UOContent/Mobiles/AI/MageAI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projects/UOContent/Mobiles/AI/MageAI.cs b/Projects/UOContent/Mobiles/AI/MageAI.cs index 1ed8cbdda..11f02f1aa 100644 --- a/Projects/UOContent/Mobiles/AI/MageAI.cs +++ b/Projects/UOContent/Mobiles/AI/MageAI.cs @@ -616,8 +616,8 @@ public class MageAI : BaseAI } var del = ScaleBySkill(3.0, SkillName.Magery); - var min = 6.0 - del * 0.75; - var max = 6.0 - del * 1.25; + var min = 6.0 - del * 1.25; + var max = 6.0 - del * 0.75; return TimeSpan.FromSeconds(min + (max - min) * Utility.RandomDouble()); }