From e4fd108de7320ba7a55810f5483113aad81ee43a Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 21:19:00 -0400 Subject: remove attachrid from inma spell --- world/map/npc/magic/level2-lay-on-hands.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'world') 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: -- cgit v1.2.3-60-g2f50