diff options
author | Dastgir Pojee <dastgirp@gmail.com> | 2016-10-03 18:59:33 +0530 |
---|---|---|
committer | hemagx <ibrahem.h.basyone@gmail.com> | 2016-10-22 02:22:08 +0200 |
commit | f68a446b365389ce6494fb2de2473ace19f3bc14 (patch) | |
tree | 046d77014c74e266a0c5b2d59f9fb34c40fffdaa /src | |
parent | 384ab01c3ea55f96277824b9c64d79dc060efcb3 (diff) | |
download | hercules-f68a446b365389ce6494fb2de2473ace19f3bc14.tar.gz hercules-f68a446b365389ce6494fb2de2473ace19f3bc14.tar.bz2 hercules-f68a446b365389ce6494fb2de2473ace19f3bc14.tar.xz hercules-f68a446b365389ce6494fb2de2473ace19f3bc14.zip |
Implemented SU_POWEROFSEA.
Increases Heal Effect by 10%.
if >= 20 skill points are invested in seafood-based skills, Increases Heal
Effect by 20%.
Diffstat (limited to 'src')
-rw-r--r-- | src/map/skill.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 8d870881e..ce5c12d98 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -397,6 +397,11 @@ int skill_calc_heal(struct block_list *src, struct block_list *target, uint16 sk hp += hp * skill2_lv * 2 / 100; else if (src->type == BL_HOM && (skill2_lv = homun->checkskill(BL_UCAST(BL_HOM, src), HLIF_BRAIN)) > 0) hp += hp * skill2_lv * 2 / 100; + if (sd != NULL && ((skill2_lv = pc->checkskill(sd, SU_POWEROFSEA)) > 0)) { + hp += hp * 10 / 100; + if (pc->checkskill(sd, SU_TUNABELLY) == 5 && pc->checkskill(sd, SU_TUNAPARTY) == 5 && pc->checkskill(sd, SU_BUNCHOFSHRIMP) == 5 && pc->checkskill(sd, SU_FRESHSHRIMP) == 5) + hp += hp * 20 / 100; + } break; } |