summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJedzkie <jedzkie13@rocketmail.com>2017-04-21 15:32:06 +0800
committerJedzkie <jedzkie13@rocketmail.com>2017-04-21 15:32:06 +0800
commita477c105a6d5e60a55b71d3774e9658dcf96a670 (patch)
treeed86dcf44727be9a0b6e72ae976bd27422d4d834 /src
parent116d69f454a04453c26f9c3d0f2bb1231de03173 (diff)
downloadhercules-a477c105a6d5e60a55b71d3774e9658dcf96a670.tar.gz
hercules-a477c105a6d5e60a55b71d3774e9658dcf96a670.tar.bz2
hercules-a477c105a6d5e60a55b71d3774e9658dcf96a670.tar.xz
hercules-a477c105a6d5e60a55b71d3774e9658dcf96a670.zip
Added AB_HIGHNESSHEAL in skill_add_heal_rate configuration
Diffstat (limited to 'src')
-rw-r--r--src/map/pc.c38
1 files changed, 29 insertions, 9 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index b4985dd5f..f5c0d29f5 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7611,22 +7611,42 @@ int pc_skillatk_bonus(struct map_session_data *sd, uint16 skill_id)
return bonus;
}
-int pc_skillheal_bonus(struct map_session_data *sd, uint16 skill_id) {
+int pc_skillheal_bonus(struct map_session_data *sd, uint16 skill_id)
+{
int i, bonus = sd->bonus.add_heal_rate;
- if( bonus ) {
- switch( skill_id ) {
- case AL_HEAL: if( !(battle_config.skill_add_heal_rate&1) ) bonus = 0; break;
- case PR_SANCTUARY: if( !(battle_config.skill_add_heal_rate&2) ) bonus = 0; break;
- case AM_POTIONPITCHER: if( !(battle_config.skill_add_heal_rate&4) ) bonus = 0; break;
- case CR_SLIMPITCHER: if( !(battle_config.skill_add_heal_rate&8) ) bonus = 0; break;
- case BA_APPLEIDUN: if( !(battle_config.skill_add_heal_rate&16)) bonus = 0; break;
+ if (bonus) {
+ switch (skill_id) {
+ case AL_HEAL:
+ if ((battle_config.skill_add_heal_rate & 1) == 0)
+ bonus = 0;
+ break;
+ case PR_SANCTUARY:
+ if ((battle_config.skill_add_heal_rate & 2) == 0)
+ bonus = 0;
+ break;
+ case AM_POTIONPITCHER:
+ if ((battle_config.skill_add_heal_rate & 4) == 0)
+ bonus = 0;
+ break;
+ case CR_SLIMPITCHER:
+ if ((battle_config.skill_add_heal_rate & 8) == 0)
+ bonus = 0;
+ break;
+ case BA_APPLEIDUN:
+ if ((battle_config.skill_add_heal_rate & 16) == 0)
+ bonus = 0;
+ break;
+ case AB_HIGHNESSHEAL:
+ if ((battle_config.skill_add_heal_rate & 32) == 0)
+ bonus = 0;
+ break;
}
}
ARR_FIND(0, ARRAYLENGTH(sd->skillheal), i, sd->skillheal[i].id == skill_id);
- if( i < ARRAYLENGTH(sd->skillheal) )
+ if (i < ARRAYLENGTH(sd->skillheal))
bonus += sd->skillheal[i].val;
return bonus;