diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-26 14:51:01 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-26 14:51:01 -0300 |
commit | 581445a5f0000bd6b6bca847c9e92731283cd6f7 (patch) | |
tree | f1d0f64e1a5e28723a1dba13de726d3fcf450002 | |
parent | 9456ac87dc990c1b059528bc19b9d85bbce44aa6 (diff) | |
download | serverdata-581445a5f0000bd6b6bca847c9e92731283cd6f7.tar.gz serverdata-581445a5f0000bd6b6bca847c9e92731283cd6f7.tar.bz2 serverdata-581445a5f0000bd6b6bca847c9e92731283cd6f7.tar.xz serverdata-581445a5f0000bd6b6bca847c9e92731283cd6f7.zip |
[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)
-rw-r--r-- | npc/functions/hub.txt | 9 |
1 files changed, 9 insertions, 0 deletions
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)); |