summaryrefslogtreecommitdiff
path: root/npc/config/magic.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-26 01:32:07 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-26 01:32:07 -0300
commitfcf75684217a17c76a85810eca4bac209e2f0e2b (patch)
tree21c7a9dc3e97bbcc9da834e6c3d081b98d32bb59 /npc/config/magic.txt
parentb36b376a4781a869c4bb3b1dd75b150a5d9ff481 (diff)
downloadserverdata-fcf75684217a17c76a85810eca4bac209e2f0e2b.tar.gz
serverdata-fcf75684217a17c76a85810eca4bac209e2f0e2b.tar.bz2
serverdata-fcf75684217a17c76a85810eca4bac209e2f0e2b.tar.xz
serverdata-fcf75684217a17c76a85810eca4bac209e2f0e2b.zip
Skill Memory will only be updated when a new skill is cast
Diffstat (limited to 'npc/config/magic.txt')
-rw-r--r--npc/config/magic.txt13
1 files changed, 7 insertions, 6 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 21fb15e7f..7570d0e9c 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -44,13 +44,14 @@ function script GetManaExp {
if (LAST_SKILL == .@sk) {
.@pt=limit(0, (.@pt+.@bonus)/3, 1);
.@bonus=0;
+ } else {
+ // 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 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;