diff options
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 720c252d8..5606eb7ae 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2179,6 +2179,14 @@ int pc_bonus(struct map_session_data *sd,int type,int val) if(!sd->state.lr_flag) sd->hp_gain_value += val; break; + case SP_ADD_HEAL_RATE: + if(sd->state.lr_flag != 2) + sd->add_heal_rate += val; + break; + case SP_ADD_HEAL2_RATE: + if(sd->state.lr_flag != 2) + sd->add_heal2_rate += val; + break; default: ShowWarning("pc_bonus: unknown type %d %d !\n",type,val); break; @@ -5235,7 +5243,7 @@ int pc_skillatk_bonus(struct map_session_data *sd, int skill_num) int pc_skillheal_bonus(struct map_session_data *sd, int skill_num) { - int i, bonus = 0; + int i, bonus = sd->add_heal_rate; ARR_FIND(0, ARRAYLENGTH(sd->skillheal), i, sd->skillheal[i].id == skill_num); if( i < ARRAYLENGTH(sd->skillheal) ) bonus += sd->skillheal[i].val; @@ -5245,7 +5253,7 @@ int pc_skillheal_bonus(struct map_session_data *sd, int skill_num) int pc_skillheal2_bonus(struct map_session_data *sd, int skill_num) { - int i, bonus = 0; + int i, bonus = sd->add_heal2_rate; ARR_FIND(0, ARRAYLENGTH(sd->skillheal2), i, sd->skillheal2[i].id == skill_num); if( i < ARRAYLENGTH(sd->skillheal2) ) bonus += sd->skillheal2[i].val; |