diff options
author | Reid <reidyaro@gmail.com> | 2016-03-07 03:21:19 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2016-03-07 03:47:41 +0100 |
commit | 807318f3031a165a9ccc64e515bcede366e9bf3c (patch) | |
tree | ed2795ff9ae80b225fc4fd57ea12a1b5f1da96c3 | |
parent | aa6fc12f22e8e02e330461f862b3888ba2499f3f (diff) | |
download | serverdata-807318f3031a165a9ccc64e515bcede366e9bf3c.tar.gz serverdata-807318f3031a165a9ccc64e515bcede366e9bf3c.tar.bz2 serverdata-807318f3031a165a9ccc64e515bcede366e9bf3c.tar.xz serverdata-807318f3031a165a9ccc64e515bcede366e9bf3c.zip |
Stop the previous potion effect and start a new one if a new potion has been used.
-rw-r--r-- | npc/items/rand_sc_heal.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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 : |