summaryrefslogtreecommitdiff
path: root/npc/config
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-16 11:41:21 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-16 11:41:21 -0300
commit0322bca5b89b6c6ca1749abeceba202947fbcc21 (patch)
tree9a33191eb469fa4eb7d6f846d23dfc675ce1160f /npc/config
parentcbaeeca7d3b248f1c5544317701d6f3f9b0b057c (diff)
downloadserverdata-0322bca5b89b6c6ca1749abeceba202947fbcc21.tar.gz
serverdata-0322bca5b89b6c6ca1749abeceba202947fbcc21.tar.bz2
serverdata-0322bca5b89b6c6ca1749abeceba202947fbcc21.tar.xz
serverdata-0322bca5b89b6c6ca1749abeceba202947fbcc21.zip
Fix mana cost bug
Diffstat (limited to 'npc/config')
-rw-r--r--npc/config/magic.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 3ffcbbf72..677d7f1e3 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -47,6 +47,10 @@ function script MagicCheck {
dispbottom l("Insufficient mana: @@/@@.", readparam(Sp), .@mp);
return 0;
}
+
+ // Apply mana cost
+ heal 0, 0-.@mp;
+
return 1;
}
@@ -63,10 +67,6 @@ function script SummonMagic {
end;
}
- // EXECUTION
- // Apply costs
- heal 0, 0-.@mp;
-
// Cause effect
// Summoned monsters live from 45 to 60 seconds, and each skill levels grants 10s extra life
// The 35~50 is not a defect, remember skill starts at level 1...