From fcf75684217a17c76a85810eca4bac209e2f0e2b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 26 Jun 2020 01:32:07 -0300 Subject: Skill Memory will only be updated when a new skill is cast --- npc/config/magic.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'npc') 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; -- cgit v1.2.3-60-g2f50