diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-09-13 10:29:49 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-09-13 10:29:49 -0300 |
commit | 29c71ff3e629de9f640735319a6e4af8e4cb4520 (patch) | |
tree | e0e62b1a295b326b7b0aba6377ac41261f9e7427 /npc/functions | |
parent | a9cd047193c349781efc004af3d7c47a47b16941 (diff) | |
download | serverdata-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.txt | 2 |
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); } |