summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-14 12:15:12 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-14 12:15:12 +0000
commit2ae6c1b78ad14b6bedd2b9b5d38bda0d9d18ab11 (patch)
tree0aa475537e384af9db531d263f3799fd9d80abb3 /src
parent00ecb67624ed5c8821af6f921f15e49974ad51b6 (diff)
downloadhercules-2ae6c1b78ad14b6bedd2b9b5d38bda0d9d18ab11.tar.gz
hercules-2ae6c1b78ad14b6bedd2b9b5d38bda0d9d18ab11.tar.bz2
hercules-2ae6c1b78ad14b6bedd2b9b5d38bda0d9d18ab11.tar.xz
hercules-2ae6c1b78ad14b6bedd2b9b5d38bda0d9d18ab11.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c17
1 files changed, 5 insertions, 12 deletions
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,