summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/_procedures.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/_procedures.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/_procedures.txt')
-rw-r--r--world/map/npc/magic/_procedures.txt9
1 files changed, 3 insertions, 6 deletions
diff --git a/world/map/npc/magic/_procedures.txt b/world/map/npc/magic/_procedures.txt
index 3fe0ed34..5f1ea865 100644
--- a/world/map/npc/magic/_procedures.txt
+++ b/world/map/npc/magic/_procedures.txt
@@ -138,17 +138,14 @@ L_Block:
set @heal_xp, (@last_heal_xp + @mexp);
if (@heal_xp > SCRIPT_HEALSPELL_MASK)
set @heal_xp, SCRIPT_HEALSPELL_MASK;
- set XMASTIME, (XMASTIME & ~(NIBBLE_0_MASK) | (@xmas_state << NIBBLE_0_SHIFT));
set SCRIPT_XP, (SCRIPT_XP & ~(SCRIPT_HEALSPELL_MASK) | (@heal_xp << SCRIPT_HEALSPELL_SHIFT));
goto L_Gain_Xp;
L_Gain_Xp:
- set @target_heal_xp, (get(MaxHp, @target_id) - get(HEALXP, @target_id));
- set @heal_exp, .@heal_value;
- if (@target_heal_xp < .@heal_value)
- set @heal_exp, @target_heal_xp;
+ set @heal_exp, .@heal_value;
+ if (.@heal_value > get(HEALXP, @target_id))
+ set @heal_exp, get(HEALXP, @target_id);
getexp (.base_exp_factor * @heal_exp), 0;
- set HEALXP, (get(HEALXP, @target_id) + @heal_exp), @target_id;
goto L_Return;
L_Return: