From 3125fe5d8b5bfe76f065e75bc42b64ef44c14df9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 2 Jan 2022 09:43:03 -0300 Subject: Elixir of Life should protect from Disease & Bleeding map effects. Bleeding map effect protection should not prevent bleeding, just enable Regen. --- db/re/item_db.conf | 2 ++ npc/functions/dungeon.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index d6a073c35..5679a38e3 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -637,7 +637,9 @@ item_db: ( callfunc("SC_Bonus", 180, SC_KAIZEL, 1); // Revives with 1% HP if you die // Protects you for 30 seconds from map ailments @coolio=max(gettimetick(2), @coolio)+30; + @sickio=max(gettimetick(2), @sickio)+30; @purifio=max(gettimetick(2), @purifio)+30; + @bleedio=max(gettimetick(2), @bleedio)+30; "> }, { diff --git a/npc/functions/dungeon.txt b/npc/functions/dungeon.txt index 40b8a8e2d..ca6799fe6 100644 --- a/npc/functions/dungeon.txt +++ b/npc/functions/dungeon.txt @@ -138,7 +138,7 @@ OnBleed: SC_Bonus(15, SC_HALT_REGENERATION, 1); // You may bleed at 2% chance per 15 seconds - if (rand2(50) == 25 && @bleedio < gettimetick(2)) + if (rand2(50) == 25) SC_Bonus(15, SC_BLOODING, 1); // New tick -- cgit v1.2.3-60-g2f50