diff options
author | mekolat <mekolat@gmail.com> | 2014-11-14 23:15:19 -0500 |
---|---|---|
committer | mekolat <mekolat@gmail.com> | 2014-11-14 23:24:50 -0500 |
commit | 82a4b191a1077e0b1228c2d85fff54f6e9d37b03 (patch) | |
tree | 0c2f475ac33b3bdf9246d68d368080270ed197c2 | |
parent | 725904e2e20a9d9f6d14a9f24811315d58ef95b7 (diff) | |
download | serverdata-82a4b191a1077e0b1228c2d85fff54f6e9d37b03.tar.gz serverdata-82a4b191a1077e0b1228c2d85fff54f6e9d37b03.tar.bz2 serverdata-82a4b191a1077e0b1228c2d85fff54f6e9d37b03.tar.xz serverdata-82a4b191a1077e0b1228c2d85fff54f6e9d37b03.zip |
make inma work with non-PC target
-rw-r--r-- | world/map/conf/magic-level2.sex | 14 |
1 files 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 |