From ec834c7100653bdd93ceef67d5a124cee292dcc3 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 8 Jun 2020 15:33:50 -0300 Subject: Magic prowess now affects adjusted spell power This does not affect builtin skills, which calculations are C-only --- npc/config/magic.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'npc/config/magic.txt') 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; } -- cgit v1.2.3-70-g09d2