diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-29 14:25:14 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-29 14:25:14 +0000 |
commit | 4b1d3c2d3884f6555afece768870910c9e9e7775 (patch) | |
tree | 485965116918b2a453a96dceaf89e16b0450d908 /src/map/pc.c | |
parent | 560fb33ed7fc650fd7f5a4e5f4eec423202ca6d5 (diff) | |
download | hercules-4b1d3c2d3884f6555afece768870910c9e9e7775.tar.gz hercules-4b1d3c2d3884f6555afece768870910c9e9e7775.tar.bz2 hercules-4b1d3c2d3884f6555afece768870910c9e9e7775.tar.xz hercules-4b1d3c2d3884f6555afece768870910c9e9e7775.zip |
* Added a new battle flag for telling which skills can have bHealPower effect.
* Added documentation for bHealPower.
* Fixed some behaviors for healing skills, (thanks to L0ne_W0lf)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13821 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 5606eb7ae..cbee0b000 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5245,6 +5245,18 @@ int pc_skillheal_bonus(struct map_session_data *sd, int skill_num) { int i, bonus = sd->add_heal_rate; + if( bonus ) + { + switch( skill_num ) + { + 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; + } + } + ARR_FIND(0, ARRAYLENGTH(sd->skillheal), i, sd->skillheal[i].id == skill_num); if( i < ARRAYLENGTH(sd->skillheal) ) bonus += sd->skillheal[i].val; |