summaryrefslogtreecommitdiff
path: root/npc/items/legacy_heal.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items/legacy_heal.txt')
-rw-r--r--npc/items/legacy_heal.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/items/legacy_heal.txt b/npc/items/legacy_heal.txt
index 9ef8e548b..dd13e590e 100644
--- a/npc/items/legacy_heal.txt
+++ b/npc/items/legacy_heal.txt
@@ -17,7 +17,10 @@
- script legacy_heal -1,{
OnUse:
- if (@delay <= 0) end;
+ if (@delay <= 0) {
+ Exception("Invalid legacy healing item, deleting without healing effect.");
+ end;
+ }
// minimum between @min and bVit / 2 * BaseLevel / 10
@min = min(@max, readparam(bVit) * BaseLevel / 20);