summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-07 20:09:51 -0300
committershennetsind <ind@henn.et>2013-10-07 20:09:51 -0300
commitbbaf8692374a82323858c4468f345d03cd05216d (patch)
tree766925f0fbbb99c123f35b041fc67639731c811f /src/map/skill.c
parentd40381f3f4f5dd41337fff6a4449e85db7ee75f1 (diff)
downloadhercules-bbaf8692374a82323858c4468f345d03cd05216d.tar.gz
hercules-bbaf8692374a82323858c4468f345d03cd05216d.tar.bz2
hercules-bbaf8692374a82323858c4468f345d03cd05216d.tar.xz
hercules-bbaf8692374a82323858c4468f345d03cd05216d.zip
Fixed Bug #5085
Fixed decrease agility duration for the level 48 (used by mvps) -- It'll take the benefits of lvl 48 (e.g. rate) but the duration will be equal to the one of lvl 10. http://hercules.ws/board/tracker/issue-5085-monster-decrease-agility/ Closes #154 Signed-off-by: shennetsind <ind@henn.et>
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 8b821653f..521748bb9 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5110,9 +5110,15 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
break;
case AL_DECAGI:
+ clif->skill_nodamage (src, bl, skill_id, skill_lv,
+ sc_start(bl, type, (40 + skill_lv * 2 + (status->get_lv(src) + sstatus->int_)/5), skill_lv,
+ /* monsters using lvl 48 get the rate benefit but the duration of lvl 10 */
+ ( src->type == BL_MOB && skill_lv == 48 ) ? skill->get_time(skill_id,skill_lv) : skill->get_time(skill_id,skill_lv)));
+ break;
+
case MER_DECAGI:
clif->skill_nodamage (src, bl, skill_id, skill_lv,
- sc_start(bl, type, (40 + skill_lv * 2 + (status->get_lv(src) + sstatus->int_)/5), skill_lv, skill->get_time(skill_id,skill_lv)));
+ sc_start(bl, type, (40 + skill_lv * 2 + (status->get_lv(src) + sstatus->int_)/5), skill_lv, skill->get_time(skill_id,skill_lv)));
break;
case AL_CRUCIS: