summaryrefslogtreecommitdiff
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
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.
-rw-r--r--src/map/battle.c10
-rw-r--r--src/map/skill.c8
2 files changed, 15 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 67ab8c9b8..fabad4460 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1666,8 +1666,14 @@ int battle_calc_skillratio(int attack_type, struct block_list *src, struct block
break;
#endif
/**
- * Arch Bishop
- **/
+ * Summoner
+ **/
+ case SU_BITE:
+ skillratio += 100;
+ break;
+ /**
+ * Arch Bishop
+ **/
case AB_JUDEX:
skillratio = 300 + 20 * skill_lv;
RE_LVL_DMOD(100);
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: