From 5c92e9905c3fc9195b9b4ad27988d857a9117e85 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 12 Mar 2019 00:00:38 -0300 Subject: Stacking healing items now incur in a penalty to prevent Crazyfefe spams. --- npc/items/rand_sc_heal.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'npc/items/rand_sc_heal.txt') diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt index 1c1c7dc1e..c08d7f271 100644 --- a/npc/items/rand_sc_heal.txt +++ b/npc/items/rand_sc_heal.txt @@ -28,6 +28,9 @@ .@old_val1 = getstatus(getarg(0), 1); .@old_delay = getstatus(getarg(0), 4) * 1000; + // Penalty to healing item stack: -20% on previous item bonus + .@old_val1 = (.@old_val1*8/10); + // change the delay to prevent fast healing if (.@old_delay > @delay) { -- cgit v1.2.3-60-g2f50