summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-20 12:13:41 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-20 12:13:41 -0300
commitfb0d10f424315bdf95f0b6f12d1aa9783369b99f (patch)
tree23d22fb8caa698cc307349d5ad3a60cfd12508c3
parentad6dbe3a178088240fd0425b75b11b79c098eb84 (diff)
downloadserverdata-fb0d10f424315bdf95f0b6f12d1aa9783369b99f.tar.gz
serverdata-fb0d10f424315bdf95f0b6f12d1aa9783369b99f.tar.bz2
serverdata-fb0d10f424315bdf95f0b6f12d1aa9783369b99f.tar.xz
serverdata-fb0d10f424315bdf95f0b6f12d1aa9783369b99f.zip
This should do the trick. Magic calculation remaster. (magic only)
-rw-r--r--npc/config/magic.txt7
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;