summaryrefslogtreecommitdiff
path: root/npc/config/magic.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-26 01:31:36 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-26 01:31:36 -0300
commitb36b376a4781a869c4bb3b1dd75b150a5d9ff481 (patch)
tree24fa7af378c014d420ce045b93c1e889d53a2fec /npc/config/magic.txt
parent469b6576f5f7c0057eb1a32a649fd8f6e5e0640a (diff)
downloadserverdata-b36b376a4781a869c4bb3b1dd75b150a5d9ff481.tar.gz
serverdata-b36b376a4781a869c4bb3b1dd75b150a5d9ff481.tar.bz2
serverdata-b36b376a4781a869c4bb3b1dd75b150a5d9ff481.tar.xz
serverdata-b36b376a4781a869c4bb3b1dd75b150a5d9ff481.zip
Increase LAST_SKILL range to 5 slots
Diffstat (limited to 'npc/config/magic.txt')
-rw-r--r--npc/config/magic.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index b5845b07d..21fb15e7f 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -45,7 +45,14 @@ function script GetManaExp {
.@pt=limit(0, (.@pt+.@bonus)/3, 1);
.@bonus=0;
}
- LAST_SKILL=.@sk;
+ // Update skill memory
+ LAST_SKILL[4]=LAST_SKILL[3]
+ LAST_SKILL[3]=LAST_SKILL[2]
+ LAST_SKILL[2]=LAST_SKILL[1]
+ LAST_SKILL[1]=LAST_SKILL[0]
+ LAST_SKILL[0]=.@sk;
+
+ // Update Magic EXP
MAGIC_EXP=MAGIC_EXP+.@pt+.@bonus;
return;
}