summaryrefslogtreecommitdiff
path: root/npc/config
diff options
context:
space:
mode:
Diffstat (limited to 'npc/config')
-rw-r--r--npc/config/magic.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 5d4df94bd..6516a2609 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -20,8 +20,10 @@ function script GetManaExp {
.@sk=getarg(0);
.@pt=getarg(1);
.@bonus=rand(0,getskilllv(TMW2_SAGE)*3/2);
- if (LAST_SKILL == .@sk)
- end;
+ if (LAST_SKILL == .@sk) {
+ .@pt=limit(0, (.@pt+.@bonus)/3, 1);
+ .@bonus=0;
+ }
LAST_SKILL=.@sk;
MAGIC_EXP=MAGIC_EXP+.@pt+.@bonus;
return;