diff options
-rw-r--r-- | npc/config/magic.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt index 87f804df2..ddcbd24e8 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -20,9 +20,9 @@ function script AdjustSpellpower { .@type=getarg(2, HARM_MAGI); .@src=getcharid(3); - // Prevents a possible glitch, unoptimal fix - if (.@target < 1) - .@target=getcharid(3); + // Prevents a possible glitch + if (.@target < 1 || .@target == getcharid(3)) + .@target=0; .@dmg=calcdmg(.@src, .@target, .@type); // Abizit Influence (80%~130% at best, worst shot at perfect ctrl is 105%) |