summaryrefslogtreecommitdiff
path: root/npc/config/magic.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-08-09 23:21:24 -0300
committerJesusaves <cpntb1@ymail.com>2018-08-09 23:21:24 -0300
commit6784a215d49bad32c4ae9a8f503f6ec85cab59ec (patch)
tree9e04107962fa5db9c3fe60e0aa6956d88d2aab72 /npc/config/magic.txt
parent84ffc419dc71bc333cb6b0a87e4ddd0bee5ea155 (diff)
downloadserverdata-6784a215d49bad32c4ae9a8f503f6ec85cab59ec.tar.gz
serverdata-6784a215d49bad32c4ae9a8f503f6ec85cab59ec.tar.bz2
serverdata-6784a215d49bad32c4ae9a8f503f6ec85cab59ec.tar.xz
serverdata-6784a215d49bad32c4ae9a8f503f6ec85cab59ec.zip
Not sure why it is not working
Diffstat (limited to 'npc/config/magic.txt')
-rw-r--r--npc/config/magic.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index f7b22d47c..7da849e86 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -19,7 +19,10 @@
function script GetManaExp {
.@sk=getarg(0);
.@pt=getarg(1);
- .@bonus=rand(0,getskilllv(TMW2_SAGE)*3/2);
+ if (getskilllv(TMW2_SAGE))
+ .@bonus=rand(0,getskilllv(TMW2_SAGE)*3/2);
+ else
+ .@bonus=0;
if (LAST_SKILL == .@sk)
end;
LAST_SKILL=.@sk;