From 4ea1b25483a3f27aa8a58fd28d347eea6b6d902e Mon Sep 17 00:00:00 2001 From: Aleos Date: Thu, 25 Jul 2019 07:45:01 -0400 Subject: [PATCH] Corrected Strip duration (#4257) * Fixes #4214. * Corrected Strip duration becoming negative which results in the status not expiring. Thanks to @Stingor! --- src/map/skill.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/skill.cpp b/src/map/skill.cpp index 468510369c..254c319104 100755 --- a/src/map/skill.cpp +++ b/src/map/skill.cpp @@ -2677,10 +2677,10 @@ bool skill_strip_equip(struct block_list *src, struct block_list *target, uint16 time = skill_get_time(skill_id, skill_lv); if (target->type == BL_PC) - time += skill_lv + 500 * (sstatus->dex - tstatus->dex); + time += max(1, skill_lv + 500 * (sstatus->dex - tstatus->dex)); else { time += 15000; - time += skill_lv + 500 * (sstatus->dex - tstatus->dex); + time += max(1, skill_lv + 500 * (sstatus->dex - tstatus->dex)); } break; }