From 029ec67ac4c2f35e23e3ecbc2651473e054c93a0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 24 May 2019 19:27:07 -0300 Subject: Fix infinite healing bug (maybe) --- npc/items/rand_sc_heal.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/items') diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt index a005bf095..6f0ef38b4 100644 --- a/npc/items/rand_sc_heal.txt +++ b/npc/items/rand_sc_heal.txt @@ -87,11 +87,11 @@ OnUse: // Calculate delay if it was not given if (!@delay || @delay > 60) { - @delay=1 + (@type*2); + @delay=1 + ((@type*3)/2); } // Update val1 - @val1 = @val1 / @delay; + @val1 = (@val1 / @delay) + 1; // Decide the healing bonus type. We have four types: S, L, G and M // By default, we use 'S' -- cgit v1.2.3-60-g2f50