summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-22 01:59:18 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-22 01:59:18 -0300
commite52bb02998f61999c80493104a7f3fbde78e6d99 (patch)
treec5e7597509622b563e4d0c3f05d7c5e18222c604
parent24e37e9f08fe818b53e144ee94cea3099b6d467b (diff)
downloadserverdata-e52bb02998f61999c80493104a7f3fbde78e6d99.tar.gz
serverdata-e52bb02998f61999c80493104a7f3fbde78e6d99.tar.bz2
serverdata-e52bb02998f61999c80493104a7f3fbde78e6d99.tar.xz
serverdata-e52bb02998f61999c80493104a7f3fbde78e6d99.zip
[skip ci] Don't forget shields D:
-rw-r--r--npc/functions/hub.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index b2c05c6a9..eade2a4d5 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -406,6 +406,9 @@ function script HUB_SkillInvoke {
case TMW2_BRAWLING:
// 75x3 = 225
.@PW=70+(5*@skillLv);
+ // Using a shield, so power is halved
+ if (getequipid(EQI_HAND_L) > 0)
+ .@PW=.@PW/2;
harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral);
harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral);
harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral);
@@ -413,6 +416,9 @@ function script HUB_SkillInvoke {
case TMW2_BEARSTRIKE:
// 60x5 = 300
.@PW=55+(5*@skillLv);
+ // Using a shield, so power is halved
+ if (getequipid(EQI_HAND_L) > 0)
+ .@PW=.@PW/2;
harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral);
harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral);
harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral);
@@ -422,6 +428,9 @@ function script HUB_SkillInvoke {
case TMW2_ALLINONE:
// 45x8 = 360
.@PW=40+(5*@skillLv);
+ // Using a shield, so power is halved
+ if (getequipid(EQI_HAND_L) > 0)
+ .@PW=.@PW/2;
harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral);
harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Fire);
harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Water);