From 82a4b191a1077e0b1228c2d85fff54f6e9d37b03 Mon Sep 17 00:00:00 2001 From: mekolat Date: Fri, 14 Nov 2014 23:15:19 -0500 Subject: make inma work with non-PC target --- world/map/conf/magic-level2.sex | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/world/map/conf/magic-level2.sex b/world/map/conf/magic-level2.sex index c1e61bf5..8d905209 100644 --- a/world/map/conf/magic-level2.sex +++ b/world/map/conf/magic-level2.sex @@ -221,12 +221,14 @@ (skill caster school) level)) (REQUIRE - (not - (is_in (location (pc target)) - (@+ - (@ "009-7.gat" (script_int caster "$@fightclub_x1") (script_int caster "$@fightclub_y1")) - (+ (- (script_int caster "$@fightclub_x2") (script_int caster "$@fightclub_x1")) 1) - (+ (- (script_int caster "$@fightclub_y2") (script_int caster "$@fightclub_y1")) 1))))) + (== (if_then_else (failed (pc target)) + 1 + (not + (is_in (location (pc target)) + (@+ + (@ "009-7.gat" (script_int caster "$@fightclub_x1") (script_int caster "$@fightclub_y1")) + (+ (- (script_int caster "$@fightclub_x2") (script_int caster "$@fightclub_x1")) 1) + (+ (- (script_int caster "$@fightclub_y2") (script_int caster "$@fightclub_y1")) 1))))) 1)) (REQUIRE (if_then_else (failed -- cgit v1.2.3-60-g2f50