From c8c6e7b34cb983054ddc5ed73f5239d6b728af11 Mon Sep 17 00:00:00 2001 From: Fate Date: Tue, 16 Jun 2009 15:46:00 +0000 Subject: Removed unnecessary am-healing flag, incorporated healing packets with regular opt status flags. This, together with the clientdata update, should fix the stuck healing state. --- src/map/skill.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index ea7beb3..3a1dbf6 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -7790,6 +7790,31 @@ int skill_status_change_end(struct block_list* bl, int type, int tid) return 0; } + + +int +skill_update_heal_animation(struct map_session_data *sd) +{ + const int mask = 0x100; + int was_active; + int is_active; + + nullpo_retr (0, sd); + was_active = sd->opt2 & mask; + is_active = sd->quick_regeneration_hp.amount > 0; + + if ((was_active && is_active) + || (!was_active && !is_active)) + return 0; // no update + + if (is_active) + sd->opt2 |= mask; + else + sd->opt2 &= ~mask; + + return clif_changeoption(&sd->bl); +} + /*========================================== * ステータス異常終了タイマー *------------------------------------------ -- cgit v1.2.3-70-g09d2