summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDastgir Pojee <dastgirp@gmail.com>2016-10-03 18:40:27 +0530
committerhemagx <ibrahem.h.basyone@gmail.com>2016-10-22 02:22:05 +0200
commit4cdcafaa6edfe500019406a35c443d82d924d468 (patch)
tree248cd12795d560185ffd4365aaa81d649ce20de7 /src
parentf5297cbb8d4b4f6b45fb1d3d6d72253795eca5ef (diff)
downloadhercules-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')
-rw-r--r--src/map/battle.c6
-rw-r--r--src/map/skill.c4
2 files changed, 10 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
**/
diff --git a/src/map/skill.c b/src/map/skill.c
index 1f8171b72..d947f28a6 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3989,6 +3989,10 @@ int skill_castend_damage_id(struct block_list* src, struct block_list *bl, uint1
skill->addtimerskill(src, tick + skill->get_delay(skill_id, skill_lv), bl->id, 0, 0, skill_id, skill_lv, BF_WEAPON, flag);
break;
+ case SU_PICKYPECK:
+ clif->skill_nodamage(src, bl, skill_id, skill_lv, 1);
+ break;
+
// Splash attack skills.
case AS_GRIMTOOTH:
case MC_CARTREVOLUTION: