diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-29 06:32:39 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-29 06:32:39 -0300 |
commit | 2332976167bfe6803b7f268083b37ff2d9344ec6 (patch) | |
tree | 6337290343806a089fcc7b83aafe4755cd786a7c | |
parent | 62c1a72a50dee7c02ad68536767e4824b2f36fc6 (diff) | |
download | serverdata-2332976167bfe6803b7f268083b37ff2d9344ec6.tar.gz serverdata-2332976167bfe6803b7f268083b37ff2d9344ec6.tar.bz2 serverdata-2332976167bfe6803b7f268083b37ff2d9344ec6.tar.xz serverdata-2332976167bfe6803b7f268083b37ff2d9344ec6.zip |
Update Magiscript for when target should be null.
This should automagically fix first aid skill.
-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%) |