From 2ae6c1b78ad14b6bedd2b9b5d38bda0d9d18ab11 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 14 Jan 2012 12:15:12 +0000 Subject: minor cleanup: removed duplicate magnum break code, bugreport:3057 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15455 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/map/skill.c b/src/map/skill.c index 405eb47aa..ef19c35b1 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -3402,16 +3402,6 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int //FIXME: Isn't EarthQuake a ground skill after all? if( skillid == NPC_EARTHQUAKE ) skill_addtimerskill(src,tick+250,src->id,0,0,skillid,skilllv,2,flag|BCT_ENEMY|SD_SPLASH|1); - - //FIXME: move this to skill_additional_effect or some such? [ultramage] - if( skillid == SM_MAGNUM || skillid == MS_MAGNUM ) - { // Initiate 10% of your damage becomes fire element. - sc_start4(src,SC_WATK_ELEMENT,100,3,20,0,0,skill_get_time2(skillid, skilllv)); - if( sd ) - skill_blockpc_start(sd, skillid, skill_get_time(skillid, skilllv)); - if( bl->type == BL_MER ) - skill_blockmerc_start((TBL_MER*)bl, skillid, skill_get_time(skillid, skilllv)); - } } break; @@ -4585,9 +4575,12 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in map_foreachinrange(skill_area_sub, src, skill_get_splash(skillid, skilllv), BL_SKILL|BL_CHAR, src,skillid,skilllv,tick, flag|BCT_ENEMY|1, skill_castend_damage_id); clif_skill_nodamage (src,src,skillid,skilllv,1); - //Initiate 10% of your damage becomes fire element. + // Initiate 10% of your damage becomes fire element. sc_start4(src,SC_WATK_ELEMENT,100,3,20,0,0,skill_get_time2(skillid, skilllv)); - if (sd) skill_blockpc_start (sd, skillid, skill_get_time(skillid, skilllv)); + if( sd ) + skill_blockpc_start(sd, skillid, skill_get_time(skillid, skilllv)); + else if( bl->type == BL_MER ) + skill_blockmerc_start((TBL_MER*)bl, skillid, skill_get_time(skillid, skilllv)); break; case ASC_EDP: clif_skill_nodamage(src,bl,skillid,skilllv, -- cgit v1.2.3-70-g09d2