diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2015-03-16 08:41:25 +0800 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2015-03-16 08:41:25 +0800 |
commit | c2286f82e0843eedc5db04ca26ffd16fae9d6955 (patch) | |
tree | bc5fbcc8e1f75eb85d79a0f2e97f3554d76bf3df /src/map/skill.c | |
parent | ef5a28366c36568656f45b3e270dc99747c1ae74 (diff) | |
download | hercules-c2286f82e0843eedc5db04ca26ffd16fae9d6955.tar.gz hercules-c2286f82e0843eedc5db04ca26ffd16fae9d6955.tar.bz2 hercules-c2286f82e0843eedc5db04ca26ffd16fae9d6955.tar.xz hercules-c2286f82e0843eedc5db04ca26ffd16fae9d6955.zip |
RENEWAL Updates:
-AM_DEMONSTRATION and AM_ACIDTERROR is now using RE formula.
-Fixed damage modifiers of some skills.
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index a351425e1..e73e49805 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -912,9 +912,11 @@ int skill_additional_effect(struct block_list* src, struct block_list *bl, uint1 break; case AM_ACIDTERROR: - sc_start2(src,bl,SC_BLOODING,(skill_lv*3),skill_lv,src->id,skill->get_time2(skill_id,skill_lv)); - if (skill->break_equip(bl, EQP_ARMOR, 100*skill->get_time(skill_id,skill_lv), BCT_ENEMY)) - clif->emotion(bl,E_OMG); + sc_start2(src, bl, SC_BLOODING, (skill_lv * 3), skill_lv, src->id, skill->get_time2(skill_id, skill_lv)); + if ( bl->type == BL_PC && rnd() % 1000 < 10 * skill->get_time(skill_id, skill_lv) ) { + skill->break_equip(bl, EQP_ARMOR, 10000, BCT_ENEMY); + clif->emotion(bl, E_OMG); // emote icon still shows even there is no armor equip. + } break; case AM_DEMONSTRATION: |