diff options
author | gumi <git@gumi.ca> | 2018-11-10 15:04:21 -0500 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-11-10 15:08:25 -0500 |
commit | fd06a7799004350139d16b7b21424acf10af457e (patch) | |
tree | cc4a7de7978d89dc8ca4014224d10247eb2fac79 /world/map/npc/magic/level2-lay-on-hands.txt | |
parent | 95585577d382352251bebca35629eebf2a1fe253 (diff) | |
download | serverdata-fd06a7799004350139d16b7b21424acf10af457e.tar.gz serverdata-fd06a7799004350139d16b7b21424acf10af457e.tar.bz2 serverdata-fd06a7799004350139d16b7b21424acf10af457e.tar.xz serverdata-fd06a7799004350139d16b7b21424acf10af457e.zip |
fix the mouboo heal exploit
Diffstat (limited to 'world/map/npc/magic/level2-lay-on-hands.txt')
-rw-r--r-- | world/map/npc/magic/level2-lay-on-hands.txt | 9 |
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; |