summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-15 04:30:29 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-15 04:30:29 +0000
commit527f90ae1d50ff02bf7784c5b25550f2a9373456 (patch)
treea8fc08495470a36c3c8f4dd2b67237e10d8eace2 /src/map/battle.c
parentf50ce9e6be15ed32eee03ea919641ca2692c52ec (diff)
downloadhercules-527f90ae1d50ff02bf7784c5b25550f2a9373456.tar.gz
hercules-527f90ae1d50ff02bf7784c5b25550f2a9373456.tar.bz2
hercules-527f90ae1d50ff02bf7784c5b25550f2a9373456.tar.xz
hercules-527f90ae1d50ff02bf7784c5b25550f2a9373456.zip
- Removed useless mapname compares (since r570) and fixed the strncmp for malangdo/malaya (r15388). [thanks lighta]
- Follow up to r16322 so the comment "only modifier is halved but still benefit with the damage bonus" is actually true. Thanks lighta! git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16637 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index e36befad7..bde3bfb65 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2630,7 +2630,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
// FIX ME: Should Rolling Cutter be affected by EDP?
switch(skill_num){
case AS_SPLASHER: case AS_VENOMKNIFE:
- case AS_GRIMTOOTH: case GC_ROLLINGCUTTER:
+ case AS_GRIMTOOTH: case GC_ROLLINGCUTTER:
break;
#ifndef RENEWAL_EDP
case ASC_BREAKER: case ASC_METEORASSAULT: break;
@@ -2640,10 +2640,9 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
case GC_COUNTERSLASH:
case GC_CROSSIMPACT:
ATK_RATE(50); // only modifier is halved but still benefit with the damage bonus
- break;
#endif
default:
- ATK_ADDRATE(sc->data[SC_EDP]->val3);
+ ATK_ADDRATE(sc->data[SC_EDP]->val3);
}
}
}
@@ -5060,7 +5059,7 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
state |= BCT_ENEMY;
strip_enemy = 0;
break;
- default:
+ default:
if(su->group->skill_id == WM_REVERBERATION || su->group->skill_id == WM_POEMOFNETHERWORLD){
state |= BCT_ENEMY;
strip_enemy = 0;
@@ -5078,7 +5077,7 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
//Valid targets with no special checks here.
case BL_MER:
case BL_HOM:
- case BL_ELEM:
+ case BL_ELEM:
break;
//All else not specified is an invalid target.
default: