summaryrefslogtreecommitdiff
path: root/npc/items/rand_sc_heal.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items/rand_sc_heal.txt')
-rw-r--r--npc/items/rand_sc_heal.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt
index 41ea3b3..5a9a915 100644
--- a/npc/items/rand_sc_heal.txt
+++ b/npc/items/rand_sc_heal.txt
@@ -97,10 +97,10 @@ function script ItHeal2 {
end;
OnUse:
if (@rarity <= 0) {
- Exception("Invalid healing item, deleting without healing effect.");
- end;
+ ItHeal();
+ } else {
+ ItHeal2(@type, @rarity, @delay);
}
- ItHeal2(@type, @rarity, @delay);
// Clear stuff
// @val1 must be preserved for cross-reading