summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level2-lay-on-hands.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/magic/level2-lay-on-hands.txt')
-rw-r--r--world/map/npc/magic/level2-lay-on-hands.txt9
1 files changed, 6 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 8bb0782b..69a7d725 100644
--- a/world/map/npc/magic/level2-lay-on-hands.txt
+++ b/world/map/npc/magic/level2-lay-on-hands.txt
@@ -46,10 +46,13 @@ L_Pay:
end;
L_Mouboo:
- set @spell, 1;
+ set @target_id, getnpcid("Mouboo");
+ callfunc "adjust_spellpower";
+ if (distance(BL_ID, @target_id) >= (((sqrt(@spellpower) * 12) + @spellpower) / 100) + 2) end;
+ misceffect FX_MAGIC_WHITE, strcharinfo(0); // on caster
+ misceffect FX_MAGIC_WHITE, @target_id; // on target
callfunc "QuestMoubooHeal";
- set @needed, 1000;
- goto L_Pay;
+ end;
OnInit:
set .school, SKILL_MAGIC_LIFE;