From 2d90300fc3c8be2319b53cae667d97547bb52fd9 Mon Sep 17 00:00:00 2001 From: Fate Date: Tue, 16 Jun 2009 14:53:26 +0000 Subject: use pc_heal() instead of hacked-up code to report mob special skill damage, hopefully fixing 0.0.28 bugs with double death reports --- src/map/skill.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/map/skill.c b/src/map/skill.c index c179f70..ea7beb3 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6333,14 +6333,16 @@ int skill_check_condition(struct map_session_data *sd,int type) if(type&2) return 1; - if(sp > 0) { // SP消費 - sd->status.sp-=sp; - clif_updatestatus(sd,SP_SP); - } - if(hp > 0) { // HP消費 - sd->status.hp-=hp; - clif_updatestatus(sd,SP_HP); - } + pc_heal(sd, -sp, -hp); // [Fate] This might suppress some dupe messages + +/* if(sp > 0) { // SP消費 */ +/* sd->status.sp-=sp; */ +/* clif_updatestatus(sd,SP_SP); */ +/* } */ +/* if(hp > 0) { // HP消費 */ +/* sd->status.hp-=hp; */ +/* clif_updatestatus(sd,SP_HP); */ +/* } */ if(zeny > 0) // Zeny消費 pc_payzeny(sd,zeny); if(spiritball > 0) // 氣球消費 -- cgit v1.2.3-70-g09d2