summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-20 11:26:18 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-20 11:26:18 -0300
commit7cbff2a027666f0708ae11d5a134f88ed02cb946 (patch)
tree58c8b04b315cc985a98807133213249e698cb62e
parent3a4b3571e81df73d16aef59900181f554a0b60fc (diff)
downloadserverdata-7cbff2a027666f0708ae11d5a134f88ed02cb946.tar.gz
serverdata-7cbff2a027666f0708ae11d5a134f88ed02cb946.tar.bz2
serverdata-7cbff2a027666f0708ae11d5a134f88ed02cb946.tar.xz
serverdata-7cbff2a027666f0708ae11d5a134f88ed02cb946.zip
Exception() for legacy healing item
-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);