summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-08 15:33:50 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-08 15:33:50 -0300
commitec834c7100653bdd93ceef67d5a124cee292dcc3 (patch)
treeb7e86437cfc7c41407ea4c93730d1c1a46e459ff /npc
parent24c606ba2e85e4c440d892811eec6c5c621bebdd (diff)
downloadserverdata-ec834c7100653bdd93ceef67d5a124cee292dcc3.tar.gz
serverdata-ec834c7100653bdd93ceef67d5a124cee292dcc3.tar.bz2
serverdata-ec834c7100653bdd93ceef67d5a124cee292dcc3.tar.xz
serverdata-ec834c7100653bdd93ceef67d5a124cee292dcc3.zip
Magic prowess now affects adjusted spell power
This does not affect builtin skills, which calculations are C-only
Diffstat (limited to 'npc')
-rw-r--r--npc/config/magic.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index ca42429b2..290f0410f 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -23,6 +23,8 @@ function script AdjustSpellpower {
.@src=getcharid(3);
.@dmg=calcdmg(.@src, .@target, .@type);
+ // 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;
return .@dmg;
}