From d92272eb895d42b4bbf5965afdefdb51bac2b53a Mon Sep 17 00:00:00 2001 From: Locien Date: Sat, 17 Dec 2016 00:55:34 +0100 Subject: [PATCH] Corrected behavior for magic rod showing its animation in pre-renewal In pre-renewal the animation of magic rod only shows up when the user is attacked with a spell that can be absorbed by it. In renewal it shows when you cast the skill instead. This has been tested on iRO Chaos and iRO Classic. --- src/map/skill.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/map/skill.c b/src/map/skill.c index bd579eee33..e2f3ccdac4 100755 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -3167,6 +3167,9 @@ int64 skill_attack (int attack_type, struct block_list* src, struct block_list * } if(tsc && tsc->data[SC_MAGICROD] && src == dsrc) { +#ifndef RENEWAL + clif_skill_nodamage(bl,bl,SA_MAGICROD,skill_lv,1); +#endif int sp = skill_get_sp(skill_id,skill_lv); dmg.damage = dmg.damage2 = 0; dmg.dmg_lv = ATK_MISS; //This will prevent skill additional effect from taking effect. [Skotlex] @@ -8009,7 +8012,9 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui } break; case SA_MAGICROD: +#ifdef RENEWAL clif_skill_nodamage(src,src,SA_MAGICROD,skill_lv,1); +#endif sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)); break; case SA_AUTOSPELL: