summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorDastgir Pojee <dastgirp@gmail.com>2016-10-02 20:42:13 +0530
committerhemagx <ibrahem.h.basyone@gmail.com>2016-10-22 02:21:49 +0200
commit95915440c030610068bf87ed583ee595bba1a836 (patch)
tree390ca8d18734fb05f7181216e27e3985e1b9c526 /src/map/skill.c
parent473ba564829a6d0153e320d1f302754442648ec7 (diff)
downloadhercules-95915440c030610068bf87ed583ee595bba1a836.tar.gz
hercules-95915440c030610068bf87ed583ee595bba1a836.tar.bz2
hercules-95915440c030610068bf87ed583ee595bba1a836.tar.xz
hercules-95915440c030610068bf87ed583ee595bba1a836.zip
Implemented SU_BITE Skill:
Lv.1: Atk+ 200% BaseLevel 30: Adds a Chance to Reactive the skill. Every 30 Base Levels: Increases the chance to reactive the skill.
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 2559a7a5b..3b1b8c947 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3961,7 +3961,13 @@ int skill_castend_damage_id(struct block_list* src, struct block_list *bl, uint1
skill->attack(BF_WEAPON,src,src,bl,skill_id,skill_lv,tick,flag);
break;
- //Splash attack skills.
+ case SU_BITE:
+ skill->attack(BF_WEAPON, src, src, bl, skill_id, skill_lv, tick, flag);
+ if (status->get_lv(src) >= 30 && (rnd() % 100 < (int)(status->get_lv(src) / 30) + 10)) // TODO: Need activation chance.
+ skill->addtimerskill(src, tick + skill->get_delay(skill_id, skill_lv), bl->id, 0, 0, skill_id, skill_lv, BF_WEAPON, flag);
+ break;
+
+ // Splash attack skills.
case AS_GRIMTOOTH:
case MC_CARTREVOLUTION:
case NPC_SPLASHATTACK: