diff options
author | Dastgir Pojee <dastgirp@gmail.com> | 2016-10-03 18:40:27 +0530 |
---|---|---|
committer | hemagx <ibrahem.h.basyone@gmail.com> | 2016-10-22 02:22:05 +0200 |
commit | 4cdcafaa6edfe500019406a35c443d82d924d468 (patch) | |
tree | 248cd12795d560185ffd4365aaa81d649ce20de7 /src/map/battle.c | |
parent | f5297cbb8d4b4f6b45fb1d3d6d72253795eca5ef (diff) | |
download | hercules-4cdcafaa6edfe500019406a35c443d82d924d468.tar.gz hercules-4cdcafaa6edfe500019406a35c443d82d924d468.tar.bz2 hercules-4cdcafaa6edfe500019406a35c443d82d924d468.tar.xz hercules-4cdcafaa6edfe500019406a35c443d82d924d468.zip |
Implemented SU_PICKYPECK Skill.
ATK + (200+100*SkillLv)%
Every 30 Base Levels, Adds an Additional Chance to reactivate the skill.
When the Enemy has Less than 50% HP Left, Damage is doubled.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index f220be17b..2c9d3f3c4 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1677,6 +1677,12 @@ int battle_calc_skillratio(int attack_type, struct block_list *src, struct block case SU_SCAROFTAROU: skillratio += -100 + 100 * skill_lv; break; + case SU_PICKYPECK: + case SU_PICKYPECK_DOUBLE_ATK: + skillratio += 100 + 100 * skill_lv; + if ((status_get_max_hp(target) / 100) <= 50) + skillratio *= 2; + break; /** * Arch Bishop **/ |