From 581445a5f0000bd6b6bca847c9e92731283cd6f7 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 26 Jun 2020 14:51:01 -0300 Subject: [skip ci] Horizontal Slash will set @SCombo Diagonal, Vertical, Stab and Grand Blast will check @skillTarget versus it If they differ, the combo is null and power will be 100% (normal attack) --- npc/functions/hub.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'npc') diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 20a13f07a..61eda0418 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -486,6 +486,7 @@ function script HUB_SkillInvoke { case TMW2_HORIZONTALSLASH: .@PW=100; .@PW+=(5*@skillLv); + @SCombo=@skillTarget; harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); GetManaExp(@skillId, rand2(1,3)); break; @@ -495,6 +496,8 @@ function script HUB_SkillInvoke { .@PW+=20; if (.@PW >= 120) .@PW+=30; + if (@SCombo != @skillTarget) + .@PW=100; .@PW+=(5*@skillLv); harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); GetManaExp(@skillId, rand2(1,3)); @@ -507,6 +510,8 @@ function script HUB_SkillInvoke { .@PW+=20; if (.@PW >= 150) .@PW+=100; + if (@SCombo != @skillTarget) + .@PW=100; .@PW+=(5*@skillLv); harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); GetManaExp(@skillId, rand2(1,3)); @@ -521,6 +526,8 @@ function script HUB_SkillInvoke { .@PW+=20; if (.@PW >= 190) .@PW+=200; + if (@SCombo != @skillTarget) + .@PW=100; .@PW+=(5*@skillLv); harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); GetManaExp(@skillId, rand2(1,3)); @@ -537,6 +544,8 @@ function script HUB_SkillInvoke { .@PW+=20; if (.@PW >= 200) .@PW+=300; + if (@SCombo != @skillTarget) + .@PW=100; .@PW+=(5*@skillLv); harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Holy); GetManaExp(@skillId, rand2(2,3)); -- cgit v1.2.3-70-g09d2