summaryrefslogtreecommitdiff
path: root/npc/config
diff options
context:
space:
mode:
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 8cc777c99..4192d5bee 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -57,14 +57,14 @@ function script GetManaExp {
LAST_SKILL[1]=LAST_SKILL[0];
LAST_SKILL[0]=.@sk;
skillInvoke[0]+=1;
+
+ // Gain Magic RP if relevant
+ if (skillInvoke[0] % 10 == 0)
+ MAGIC_RP+=1;
}
// Update Magic EXP
MAGIC_EXP=MAGIC_EXP+.@pt+.@bonus;
-
- // Gain Magic RP if relevant
- if (skillInvoke[0] % 10 == 0)
- MAGIC_RP+=1;
return;
}