summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-09-13 10:29:49 -0300
committerJesusaves <cpntb1@ymail.com>2018-09-13 10:29:49 -0300
commit29c71ff3e629de9f640735319a6e4af8e4cb4520 (patch)
treee0e62b1a295b326b7b0aba6377ac41261f9e7427 /npc/functions
parenta9cd047193c349781efc004af3d7c47a47b16941 (diff)
downloadserverdata-29c71ff3e629de9f640735319a6e4af8e4cb4520.tar.gz
serverdata-29c71ff3e629de9f640735319a6e4af8e4cb4520.tar.bz2
serverdata-29c71ff3e629de9f640735319a6e4af8e4cb4520.tar.xz
serverdata-29c71ff3e629de9f640735319a6e4af8e4cb4520.zip
Protect abizit() from weird errors
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/util.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 17cf3fefe..0e9255694 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -335,7 +335,7 @@ function script sk_intcost {
// abizit()
function script abizit {
.@base=(MAGIC_LVL**3);
- return (MAGIC_EXP/.@base);
+ return max(MAGIC_EXP/.@base, 5);
}