summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-29 08:07:13 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-29 08:07:13 -0300
commita442c7213c1ca41ead1c6eb21faded46ea2831d7 (patch)
treedec2f8194fccd90ba7c4b4afda7334bc6eae608d
parentfa32276164368ba630bd94eee4dab7b75323f2bb (diff)
downloadserverdata-a442c7213c1ca41ead1c6eb21faded46ea2831d7.tar.gz
serverdata-a442c7213c1ca41ead1c6eb21faded46ea2831d7.tar.bz2
serverdata-a442c7213c1ca41ead1c6eb21faded46ea2831d7.tar.xz
serverdata-a442c7213c1ca41ead1c6eb21faded46ea2831d7.zip
Fix a bug on areaharm() which prevented defense from being applied
-rw-r--r--npc/023-2/mk.txt2
-rw-r--r--npc/config/magic.txt4
2 files changed, 3 insertions, 3 deletions
diff --git a/npc/023-2/mk.txt b/npc/023-2/mk.txt
index de7c0c341..1fc1a5458 100644
--- a/npc/023-2/mk.txt
+++ b/npc/023-2/mk.txt
@@ -128,7 +128,7 @@ OnTimer3000:
// Andrei Sakar's Fake Chant
if (.wcycle % 15 < 3) {
unittalk(.sakar, sprintf("Come %s %s, and %s %s!", any("great", "magnificent"), any("light", "oath", "sacrament"), any("devastate", "annihilate", "obliterate", "liquidate", "eviscerate"), "nearby"));
- harm(.mk, 100, .sakar, Ele_Holy);
+ harm(.mk, 100, HARM_MISC, Ele_Holy);
}
end;
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index f9caa7bcc..afc422793 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -171,7 +171,7 @@ function script areaharm {
// Filtering
if (!callfunc(.@f$, .@mbs[.@i]))
continue;
- harm(.@mbs[.@i], .@d, .@t, .@e);
+ harm(.@mbs[.@i], .@d, .@h, .@e);
specialeffect(FX_ATTACK, AREA, .@mbs[.@i]);
// TODO: Handle MobPt to don't overload timer system?
}
@@ -198,7 +198,7 @@ function script rectharm {
// Filtering
if (!callfunc(.@f$, .@mbs[.@i]))
continue;
- harm(.@mbs[.@i], .@d, .@t, .@e);
+ harm(.@mbs[.@i], .@d, .@h, .@e);
specialeffect(FX_ATTACK, AREA, .@mbs[.@i]);
// TODO: Handle MobPt to don't overload timer system?
}