diff options
Diffstat (limited to 'world')
-rw-r--r-- | world/map/conf/magic.conf.template | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/world/map/conf/magic.conf.template b/world/map/conf/magic.conf.template index 22f2e423..b317d63a 100644 --- a/world/map/conf/magic.conf.template +++ b/world/map/conf/magic.conf.template @@ -562,13 +562,13 @@ SPELL lay-on-hands (target : STRING) : "#L10" = REQUIRE hp(caster) > max_hp(caster) / 20, REQUIRE skill(caster, MAGIC) > level, REQUIRE skill(caster, school) > level, - REQUIRE if_then_else(failed(pc(target)), 1, - (pc(target) <> caster) - && - (rdistance(location(caster), - location(pc(target))) < 2 + sqrt(spellpower) / 4) - && not (running_status_update(pc(target), SC_HALT_REGENERATE)) - )) + REQUIRE if_then_else(failed(pc(target)), + 1, + (pc(target) <> caster) + && (rdistance(location(caster), location(pc(target))) + < 2 + (12 * sqrt(spellpower) + spellpower) / 100) + && not (running_status_update(pc(target), SC_HALT_REGENERATE)) + )) => EFFECT CALL adjust_spellpower(school); IF (not (target)) THEN ABORT; IF failed(pc(target)) |