summaryrefslogtreecommitdiff
path: root/world/map/npc
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-05-01 21:19:00 -0400
committermekolat <mekolat@users.noreply.github.com>2016-05-01 21:19:00 -0400
commite4fd108de7320ba7a55810f5483113aad81ee43a (patch)
tree4a7da29ea0a872125d4d50886e5041d7f2390fbd /world/map/npc
parenta19798682151b71f96a9cb15f1ac09dbf0253880 (diff)
downloadserverdata-e4fd108de7320ba7a55810f5483113aad81ee43a.tar.gz
serverdata-e4fd108de7320ba7a55810f5483113aad81ee43a.tar.bz2
serverdata-e4fd108de7320ba7a55810f5483113aad81ee43a.tar.xz
serverdata-e4fd108de7320ba7a55810f5483113aad81ee43a.zip
remove attachrid from inma spell
Diffstat (limited to 'world/map/npc')
-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: