From 807318f3031a165a9ccc64e515bcede366e9bf3c Mon Sep 17 00:00:00 2001 From: Reid Date: Mon, 7 Mar 2016 03:21:19 +0100 Subject: Stop the previous potion effect and start a new one if a new potion has been used. --- npc/items/rand_sc_heal.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'npc') diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt index 3e02e236..1bdcf0ee 100644 --- a/npc/items/rand_sc_heal.txt +++ b/npc/items/rand_sc_heal.txt @@ -25,15 +25,19 @@ OnUse: switch (@type) { case 1: + sc_end SC_S_LIFEPOTION; sc_start2 SC_S_LIFEPOTION, @delay * 1000, .@rand, 1; break; case 2: + sc_end SC_L_LIFEPOTION; sc_start2 SC_L_LIFEPOTION, @delay * 1000, .@rand, 1; break; case 3: + sc_end SC_G_LIFEPOTION; sc_start2 SC_G_LIFEPOTION, @delay * 1000, .@rand, 1; break; case 4: + sc_end SC_M_LIFEPOTION; sc_start2 SC_M_LIFEPOTION, @delay * 1000, .@rand, 1; break; default : -- cgit v1.2.3-70-g09d2