diff options
-rw-r--r-- | npc/config/magic.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt index c0c639e26..87f804df2 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -20,6 +20,10 @@ function script AdjustSpellpower { .@type=getarg(2, HARM_MAGI); .@src=getcharid(3); + // Prevents a possible glitch, unoptimal fix + if (.@target < 1) + .@target=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; |