summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-08 13:23:50 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-08 13:23:50 +0000
commit440542802577e5f3f67081803873bc87642a3f48 (patch)
treef0b644cf860a3deefcae01ab85d0203f455d1cc9 /src/map/battle.c
parentb26067dc6831670ba2adb2eb1e80ca28acf08e5f (diff)
downloadhercules-440542802577e5f3f67081803873bc87642a3f48.tar.gz
hercules-440542802577e5f3f67081803873bc87642a3f48.tar.bz2
hercules-440542802577e5f3f67081803873bc87642a3f48.tar.xz
hercules-440542802577e5f3f67081803873bc87642a3f48.zip
- Fixed skillratio bonus only ever being multiplied by a factor of 1 (follow-up to r15666)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15667 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index f5200456d..e38fd8a37 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1996,12 +1996,12 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
case RA_ARROWSTORM:
skillratio += 900 + 80 * skill_lv;
if( status_get_lv(src) > 100 )
- skillratio *= (status_get_lv(src) / 100); // Base level bonus.
+ skillratio = skillratio * status_get_lv(src) / 100; // Base level bonus.
break;
case RA_AIMEDBOLT:
skillratio += 400 + 50 * skill_lv;
if( status_get_lv(src) > 100 )
- skillratio *= (status_get_lv(src) / 100); // Base level bonus.
+ skillratio = skillratio * status_get_lv(src) / 100; // Base level bonus.
if( tsc && (tsc->data[SC_BITE] || tsc->data[SC_ANKLE] || tsc->data[SC_ELECTRICSHOCKER]) )
wd.div_ = tstatus->size + 2 + rnd()%2;
break;