summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-18 21:15:06 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-18 21:15:06 +0000
commit422787c9b466f9104650bf8d97021883c3857955 (patch)
treede8d4f1bc410899e37f02dee9020e951acf2dfac /src
parent3fffd37b5c8c579ffd540ac60c97a047f2d6eda1 (diff)
downloadhercules-422787c9b466f9104650bf8d97021883c3857955.tar.gz
hercules-422787c9b466f9104650bf8d97021883c3857955.tar.bz2
hercules-422787c9b466f9104650bf8d97021883c3857955.tar.xz
hercules-422787c9b466f9104650bf8d97021883c3857955.zip
- Fixed the atk_rate (Turtle General Card) bonus not working on dual-wielders.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8354 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-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 fbe9fcfba..0376a2ac3 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1230,8 +1230,8 @@ static struct Damage battle_calc_weapon_attack(
//Add any bonuses that modify the base baseatk+watk (pre-skills)
if(sd)
{
- if (sd->status.weapon < MAX_WEAPON_TYPE && (sd->atk_rate != 100 || sd->weapon_atk_rate[sd->status.weapon] != 0))
- ATK_RATE(sd->atk_rate + sd->weapon_atk_rate[sd->status.weapon]);
+ if ((sd->atk_rate != 100 || sd->weapon_atk_rate[sd->weapontype1] != 0))
+ ATK_RATE(sd->atk_rate + sd->weapon_atk_rate[sd->weapontype1]);
if(flag.cri && sd->crit_atk_rate)
ATK_ADDRATE(sd->crit_atk_rate);