summaryrefslogtreecommitdiff
path: root/npc/functions/hub.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-07 01:14:26 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-07 01:14:26 -0300
commit34c40836458aa7a549962606c814a62ad3847467 (patch)
tree332ce74cd9448c4acc03ff6efc14376591e1e4ab /npc/functions/hub.txt
parent88e7ffb2ec3f992fd38a4a093f0d746714c4b51f (diff)
downloadserverdata-34c40836458aa7a549962606c814a62ad3847467.tar.gz
serverdata-34c40836458aa7a549962606c814a62ad3847467.tar.bz2
serverdata-34c40836458aa7a549962606c814a62ad3847467.tar.xz
serverdata-34c40836458aa7a549962606c814a62ad3847467.zip
AdjustSpellpower() and AdjustAttackpower()
Complementary functions for harm()
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r--npc/functions/hub.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index a2a01bebf..a318873b0 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -289,11 +289,8 @@ function script HUB_SkillInvoke {
case TMW2_JUDGMENT:
debugmes "Target: %d (%d,%d)", @skillTarget, @skillTargetX, @skillTargetY;
areasc2(getmap(), @skillTargetX, @skillTargetY, 2, 10000, SC_BLOODING, BL_MOB|BL_PC);
- .@type=any(HARM_PHYS, HARM_MAGI);
- .@dmg=calcdmg(getcharid(3), @skillTarget, .@type);
- // Adjusted power: 300
- .@dmg=.@dmg*300/100;
- harm(@skillTarget, .@dmg, .@type, Ele_Holy);
+ .@dmg=AdjustSpellpower(300);
+ harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Holy);
break;
case TMW2_PARUM:
SK_parum();