summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level1-lesser-heal.txt
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2016-03-09 13:28:09 -0600
committermekolat <mekolat@users.noreply.github.com>2016-03-30 11:22:52 -0400
commit778cd71d3933ac6172b09654fdf2b4b317d18398 (patch)
tree4a50f5d0bebd5f93488a76053f685560b0824174 /world/map/npc/magic/level1-lesser-heal.txt
parent4e50e4f9a271bbbbf71551308851718d52242a90 (diff)
downloadserverdata-778cd71d3933ac6172b09654fdf2b4b317d18398.tar.gz
serverdata-778cd71d3933ac6172b09654fdf2b4b317d18398.tar.bz2
serverdata-778cd71d3933ac6172b09654fdf2b4b317d18398.tar.xz
serverdata-778cd71d3933ac6172b09654fdf2b4b317d18398.zip
Fix Healing
Diffstat (limited to 'world/map/npc/magic/level1-lesser-heal.txt')
-rw-r--r--world/map/npc/magic/level1-lesser-heal.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/world/map/npc/magic/level1-lesser-heal.txt b/world/map/npc/magic/level1-lesser-heal.txt
index 85f2f8a8..c4c74dd7 100644
--- a/world/map/npc/magic/level1-lesser-heal.txt
+++ b/world/map/npc/magic/level1-lesser-heal.txt
@@ -15,10 +15,10 @@
callfunc "adjust_spellpower";
set Sp, Sp - 6;
misceffect FX_MAGIC_WHITE, strcharinfo(0);
- set .@heal_value, (get(MaxHp, @target_id) - get(Hp, @target_id));
+ set .@heal_value, get(HEALXP, @target_id);
set @mexp, .exp_gain;
callfunc "magic_exp";
- if (.@heal_value < 200)
+ if (.@heal_value > 200)
set .@heal_value, 200;
if (@args$ == "Mouboo" || @args$ == "mouboo") goto L_Mouboo;
if (@target_id != BL_ID) goto L_NotMe;
@@ -32,7 +32,7 @@ L_NotMe:
L_Continue:
if (getskilllv(SKILL_MAGIC_DARK) >= 1) sc_start SC_HALT_REGENERATE, 2000, 0;
if (attachrid(@target_id) != 1) end; // XXX: to avoid the ugly attachrid method we would need some kind of `run_as` builtin
- if (!(isdead())) heal .@heal_value, 1, 1;
+ if (!(isdead())) heal 200, 1, 1;
end;
L_Mouboo: