summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-29 06:32:39 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-29 06:32:39 -0300
commit2332976167bfe6803b7f268083b37ff2d9344ec6 (patch)
tree6337290343806a089fcc7b83aafe4755cd786a7c /npc
parent62c1a72a50dee7c02ad68536767e4824b2f36fc6 (diff)
downloadserverdata-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.
Diffstat (limited to 'npc')
-rw-r--r--npc/config/magic.txt6
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%)