From 2332976167bfe6803b7f268083b37ff2d9344ec6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 29 Jul 2020 06:32:39 -0300 Subject: Update Magiscript for when target should be null. This should automagically fix first aid skill. --- npc/config/magic.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'npc') 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%) -- cgit v1.2.3-60-g2f50