summaryrefslogtreecommitdiff
path: root/world/map
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-08-17 14:39:44 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-08-17 14:39:44 -0700
commite6af141ede435de18a28af4fd58e0bdd62bfe23d (patch)
treee25506009a53012b1da05feb5591bb646c4c7396 /world/map
parentcd1434ffa2975b987e0c114d4ab039025e3c0f15 (diff)
downloadserverdata-e6af141ede435de18a28af4fd58e0bdd62bfe23d.tar.gz
serverdata-e6af141ede435de18a28af4fd58e0bdd62bfe23d.tar.bz2
serverdata-e6af141ede435de18a28af4fd58e0bdd62bfe23d.tar.xz
serverdata-e6af141ede435de18a28af4fd58e0bdd62bfe23d.zip
Compromise on the range of #inmav2011.08.18
Diffstat (limited to 'world/map')
-rw-r--r--world/map/conf/magic.conf.template14
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))