summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorDastgir Pojee <dastgirp@gmail.com>2016-10-02 21:38:15 +0530
committerhemagx <ibrahem.h.basyone@gmail.com>2016-10-22 02:21:59 +0200
commit9930ca16f6dff79b8cb14a75c50ac269dd59c6cc (patch)
tree6798870e669b5c831157e4e1d9c6b8c472807803 /src/map/skill.c
parentbc70168dfbcf81f8690c8c4d8d882bf53b2e2e78 (diff)
downloadhercules-9930ca16f6dff79b8cb14a75c50ac269dd59c6cc.tar.gz
hercules-9930ca16f6dff79b8cb14a75c50ac269dd59c6cc.tar.bz2
hercules-9930ca16f6dff79b8cb14a75c50ac269dd59c6cc.tar.xz
hercules-9930ca16f6dff79b8cb14a75c50ac269dd59c6cc.zip
Implemented SU_SV_STEMSPEAR Skill.
Silvervine Steam Spear: 10% Bleeding Chance, 700% Matk at all levels. Lv 1: Earth Magic Lv 2: Fire Magic Lv 3: Water Magic Lv 4: Wind Magic Lv 5: Ghost Magic Base Level 30: Chance to activate skill again. Every 30 Base Level: Increases the chance to activate skill.
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index b3cb1ae6f..7e65ddea4 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1424,6 +1424,9 @@ int skill_additional_effect(struct block_list* src, struct block_list *bl, uint1
case SU_SCRATCH:
sc_start2(src, bl, SC_BLOODING, (skill_lv * 3), skill_lv, src->id, skill->get_time(skill_id, skill_lv)); // TODO: What's the chance/time?
break;
+ case SU_SV_STEMSPEAR:
+ sc_start2(src, bl, SC_BLOODING, 10, skill_lv, src->id, skill->get_time(skill_id, skill_lv));
+ break;
default:
skill->additional_effect_unknown(src, bl, &skill_id, &skill_lv, &attack_type, &dmg_lv, &tick);
break;
@@ -4903,6 +4906,12 @@ 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;
+ case SU_SV_STEMSPEAR:
+ skill->attack(skill->get_type(skill_id), 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, (skill_id == SU_SV_STEMSPEAR) ? BF_MAGIC : BF_WEAPON, flag);
+ break;
+
case 0:/* no skill - basic/normal attack */
if(sd) {
if (flag & 3){