From 0322bca5b89b6c6ca1749abeceba202947fbcc21 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 16 Jul 2018 11:41:21 -0300 Subject: Fix mana cost bug --- npc/config/magic.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'npc/config/magic.txt') 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... -- cgit v1.2.3-70-g09d2