summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorDastgir Pojee <dastgirp@gmail.com>2016-10-02 21:33:12 +0530
committerhemagx <ibrahem.h.basyone@gmail.com>2016-10-22 02:21:58 +0200
commitbc70168dfbcf81f8690c8c4d8d882bf53b2e2e78 (patch)
treeff605d6e9e7374c27038fa15b8427aa4afb6a2a0 /src/map/status.c
parenta057d219f6253fb3ce19d7fc2a3f07e7365bc042 (diff)
downloadhercules-bc70168dfbcf81f8690c8c4d8d882bf53b2e2e78.tar.gz
hercules-bc70168dfbcf81f8690c8c4d8d882bf53b2e2e78.tar.bz2
hercules-bc70168dfbcf81f8690c8c4d8d882bf53b2e2e78.tar.xz
hercules-bc70168dfbcf81f8690c8c4d8d882bf53b2e2e78.zip
Implemented SU_POWEROFLAND Skill.
Increases INT by 20, If More than 20 skill points invested in plant based Skills, MATK+20%.
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index f37c6e6cf..0cb05432b 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2709,6 +2709,8 @@ int status_calc_pc_(struct map_session_data* sd, enum e_status_calc_opt opt)
bstatus->dex += skill_lv;
if((skill_lv = pc->checkskill(sd,RA_RESEARCHTRAP))>0)
bstatus->int_ += skill_lv;
+ if ((pc->checkskill(sd,SU_POWEROFLAND)) > 0)
+ bstatus->int_ += 20;
// Bonuses from cards and equipment as well as base stat, remember to avoid overflows.
i = bstatus->str + sd->status.str + sd->param_bonus[0] + sd->param_equip[0];
@@ -12245,6 +12247,10 @@ void status_get_matk_sub(struct block_list *bl, int flag, unsigned short *matk_m
// Any +MATK you get from skills and cards, including cards in weapon, is added here.
if ( sd && sd->bonus.ematk > 0 && flag != 3 )
*matk_min += sd->bonus.ematk;
+ if (sd && pc->checkskill(sd, SU_POWEROFLAND) > 0) {
+ if (pc->checkskill(sd, SU_SV_STEMSPEAR) == 5 && pc->checkskill(sd, SU_CN_POWDERING) == 5 && pc->checkskill(sd, SU_CN_METEOR) == 5 && pc->checkskill(sd, SU_SV_ROOTTWIST) == 5)
+ *matk_min += *matk_min * 20 / 100;
+ }
if ( flag != 3 )
*matk_min = status->calc_ematk(bl, sc, *matk_min);