From a442c7213c1ca41ead1c6eb21faded46ea2831d7 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 29 Dec 2021 08:07:13 -0300 Subject: Fix a bug on areaharm() which prevented defense from being applied --- npc/023-2/mk.txt | 2 +- npc/config/magic.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'npc') 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? } -- cgit v1.2.3-60-g2f50