summaryrefslogtreecommitdiff
path: root/npc/config/magic.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/config/magic.txt')
-rw-r--r--npc/config/magic.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 39de8ac48..8cc777c99 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -56,10 +56,15 @@ function script GetManaExp {
LAST_SKILL[2]=LAST_SKILL[1];
LAST_SKILL[1]=LAST_SKILL[0];
LAST_SKILL[0]=.@sk;
+ skillInvoke[0]+=1;
}
// Update Magic EXP
MAGIC_EXP=MAGIC_EXP+.@pt+.@bonus;
+
+ // Gain Magic RP if relevant
+ if (skillInvoke[0] % 10 == 0)
+ MAGIC_RP+=1;
return;
}