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/battle.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/battle.c')
-rw-r--r-- | src/map/battle.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 205d6c4f6..74ad8fe60 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -2280,7 +2280,7 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list case AL_HEAL: case PR_BENEDICTIO: case PR_SANCTUARY: - ad.damage = skill_calc_heal(src, target, skill_num, skill_lv)/2; + ad.damage = skill_calc_heal(src, target, skill_num, skill_lv, false); break; case PR_ASPERSIO: ad.damage = 40; @@ -2671,7 +2671,7 @@ struct Damage battle_calc_misc_attack(struct block_list *src,struct block_list * md.dmotion = 0; //No flinch animation. break; case NPC_EVILLAND: - md.damage = skill_calc_heal(src,target,skill_num,skill_lv); + md.damage = skill_calc_heal(src,target,skill_num,skill_lv,false); break; } @@ -3813,6 +3813,7 @@ static const struct _battle_data { { "gm_viewequip_min_lv", &battle_config.gm_viewequip_min_lv, 0, 0, 99, }, { "homunculus_auto_vapor", &battle_config.homunculus_auto_vapor, 0, 0, 1, }, { "display_status_timers", &battle_config.display_status_timers, 1, 0, 1, }, + { "skill_add_heal_rate", &battle_config.skill_add_heal_rate, 7, 0, INT_MAX, }, // BattleGround Settings { "bg_update_interval", &battle_config.bg_update_interval, 1000, 100, INT_MAX, }, { "bg_short_attack_damage_rate", &battle_config.bg_short_damage_rate, 80, 0, INT_MAX, }, |