From d2349164cede070cc7d70fdc7b23e640cb2a0d73 Mon Sep 17 00:00:00 2001 From: Mark Sturgill Date: Thu, 27 Feb 2014 13:46:12 -0700 Subject: [PATCH] edge-case bandaid for disguise kits this should really be fully rewritten to not be so dependent on the underlying timer state --- Scripts/Items/Skill Items/Thief/DisguiseKit.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Scripts/Items/Skill Items/Thief/DisguiseKit.cs b/Scripts/Items/Skill Items/Thief/DisguiseKit.cs index c6e7fd7e9..e020718c9 100644 --- a/Scripts/Items/Skill Items/Thief/DisguiseKit.cs +++ b/Scripts/Items/Skill Items/Thief/DisguiseKit.cs @@ -332,7 +332,11 @@ namespace Server.Items if ( t != null ) { - t.Delay = t.Next - DateTime.UtcNow; + TimeSpan ts = t.Next - DateTime.UtcNow; + if (ts < TimeSpan.Zero) + ts = TimeSpan.Zero; + + t.Delay = ts; t.Stop(); }