diff options
Diffstat (limited to 'world/map/npc/magic/level1-lesser-heal.txt')
-rw-r--r-- | world/map/npc/magic/level1-lesser-heal.txt | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/world/map/npc/magic/level1-lesser-heal.txt b/world/map/npc/magic/level1-lesser-heal.txt index d195956f..37d081dc 100644 --- a/world/map/npc/magic/level1-lesser-heal.txt +++ b/world/map/npc/magic/level1-lesser-heal.txt @@ -17,18 +17,14 @@ callfunc "adjust_spellpower"; set Sp, Sp - 6; misceffect FX_MAGIC_WHITE, strcharinfo(0); - set .@heal_value, get(HEALXP, @target_id); - set @mexp, .exp_gain; callfunc "magic_exp"; - if (.@heal_value > 200) - set .@heal_value, 200; if (@args$ == "Mouboo" || @args$ == "mouboo") goto L_Mouboo; if (@target_id != BL_ID) goto L_NotMe; goto L_Continue; L_NotMe: misceffect FX_MAGIC_WHITE, @target_id; - callfunc "gain_heal_xp"; + void call("gain_heal_xp", min(200, (get(MaxHp, @target_id) - get(Hp, @target_id))), 1, 2, 2); goto L_Continue; L_Continue: @@ -51,6 +47,5 @@ OnInit: void call("magic_register"); set .level, 1; set .exp_gain, 1; - set .heal_xp_value_divisor, 2; end; } |