diff options
Diffstat (limited to 'npc/config')
-rw-r--r-- | npc/config/magic.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt index 2b5cfdef9..292378d55 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -15,7 +15,7 @@ // AdjustSpellpower(power=100, {target=@skillTarget{, type=HARM_MAGI}}) function script AdjustSpellpower { - .@power=getarg(0, 100)+(readparam2(bInt)/2); + .@power=getarg(0, 100); .@target=getarg(1, @skillTarget); .@type=getarg(2, HARM_MAGI); .@src=getcharid(3); @@ -25,6 +25,11 @@ function script AdjustSpellpower { .@target=0; .@dmg=calcdmg(.@src, .@target, .@type); + // Calculation FIX + if (.@type == HARM_MAGI) { + .@dmg*=2; + .@power+=(readparam2(bInt)/2); + } // Abizit Influence (80%~130% at best, worst shot at perfect ctrl is 105%) .@dmg = .@dmg * (80 + abizit() * rand2(5,10)) / 100; .@dmg = .@dmg * .@power / 100; |