summaryrefslogtreecommitdiff
path: root/world/map
diff options
context:
space:
mode:
Diffstat (limited to 'world/map')
-rw-r--r--world/map/npc/magic/level2-lay-on-hands.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/world/map/npc/magic/level2-lay-on-hands.txt b/world/map/npc/magic/level2-lay-on-hands.txt
index 22287497..0affb210 100644
--- a/world/map/npc/magic/level2-lay-on-hands.txt
+++ b/world/map/npc/magic/level2-lay-on-hands.txt
@@ -28,7 +28,6 @@ L_Pay:
set .@heal_value, if_then_else(.@payment < .@available, .@needed+1-1, (.@available * 200) / .@fraction); // FIXME / XXX why the f do I need to do +1-1 ?
if (.@payment > .@available) set .@payment, .@available;
- set @inma_power, .@heal_value, @target_id;
set @mexp, min(.exp_gain, .@payment/100);
callfunc "gain_heal_xp";
@@ -39,8 +38,9 @@ L_Pay:
if (.@dark) heal .@bad, 0;
sc_start SC_HALT_REGENERATE, if_then_else(.@dark, 5000, 10000), 0;
- if (attachrid(@target_id) != 1) end;
- if (!(isdead())) heal @inma_power, 0;
+ set .@thp, get(Hp, @target_id);
+ if (.@thp < 1) end;
+ set Hp, .@thp + .@heal_value, @target_id;
end;
L_Mouboo: