diff options
author | Dastgir Pojee <dastgirp@gmail.com> | 2016-10-03 17:58:16 +0530 |
---|---|---|
committer | hemagx <ibrahem.h.basyone@gmail.com> | 2016-10-22 02:22:02 +0200 |
commit | 63c621ff7ceddb0fa12f8fabf7e074eb63b25eec (patch) | |
tree | 48bc1a63a6a401f2a70757276e9e75b3a48bed47 /src/map/battle.c | |
parent | 8647affb1ffbae9dc8aae34409cfd7cd47aa5dff (diff) | |
download | hercules-63c621ff7ceddb0fa12f8fabf7e074eb63b25eec.tar.gz hercules-63c621ff7ceddb0fa12f8fabf7e074eb63b25eec.tar.bz2 hercules-63c621ff7ceddb0fa12f8fabf7e074eb63b25eec.tar.xz hercules-63c621ff7ceddb0fa12f8fabf7e074eb63b25eec.zip |
Implemented SU_POWEROFLIFE Skill.
Increases Flee, Hit and CRI by 20.
If >= 20 Skill points invested in animal-based skills, Ranged Physical
Attack + 20%.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index d3a499014..688f8febc 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -5217,8 +5217,16 @@ struct Damage battle_calc_weapon_attack(struct block_list *src,struct block_list if (hd != NULL) ATK_ADD(hd->homunculus.spiritball * 3); } + if ((wd.flag&(BF_LONG|BF_MAGIC)) == BF_LONG) { + if (sd != NULL && pc->checkskill(sd, SU_POWEROFLIFE) > 0) { + if (pc->checkskill(sd, SU_SCAROFTAROU) == 5 && pc->checkskill(sd, SU_PICKYPECK) == 5 && pc->checkskill(sd, SU_ARCLOUSEDASH) == 5 && pc->checkskill(sd, SU_LUNATICCARROTBEAT) == 5) { + ATK_ADDRATE(20); + } + } + } } + switch (skill_id) { case AS_SONICBLOW: if (sc && sc->data[SC_SOULLINK] && |