summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-04 21:05:44 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-04 21:05:44 +0000
commitebd3a5ed1bbbaa904df3a4938c5d98c27f5eb52a (patch)
treeb323cfb2c10beb20b3eaf279a761a267bd645a55 /src/map/skill.c
parentfd11074c8a088a78f90f2738c2a0d9b354aa5370 (diff)
downloadhercules-ebd3a5ed1bbbaa904df3a4938c5d98c27f5eb52a.tar.gz
hercules-ebd3a5ed1bbbaa904df3a4938c5d98c27f5eb52a.tar.bz2
hercules-ebd3a5ed1bbbaa904df3a4938c5d98c27f5eb52a.tar.xz
hercules-ebd3a5ed1bbbaa904df3a4938c5d98c27f5eb52a.zip
- Bowling bash now always hits twice regardless of situation.
- Added an underflow check to prevent sending to the client negative mdef2 value (for Frenzy'ed characters) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8934 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 1f67a3dd6..3ec9274d6 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2936,7 +2936,7 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int
if(flag&1){
if(bl->id==skill_area_temp[1])
break;
- //Splash damage is always two hits for 500%
+ //two hits for 500%
skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,SD_ANIMATION);
skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,SD_ANIMATION);
} else {
@@ -2953,18 +2953,16 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int
if(skill_area_temp[0]>1) break;
}
clif_blown(bl); //Update target pos.
- if (i==c) { //No targets found. Single attack for 600%
- skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,1);
- } else {
+ if (i!=c) { //Splash
skill_area_temp[1]=bl->id;
map_foreachinrange(skill_area_sub,bl,
skill_get_splash(skillid, skilllv),BL_CHAR,
src,skillid,skilllv,tick, flag|BCT_ENEMY|1,
skill_castend_damage_id);
- //Weirdo dual-hit property, two attacks for 500%
- skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,0);
- skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,0);
- }
+ }
+ //Weirdo dual-hit property, two attacks for 500%
+ skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,0);
+ skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,0);
}
break;