diff options
author | Vicious <Vicious@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-09 21:02:48 +0000 |
---|---|---|
committer | Vicious <Vicious@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-09 21:02:48 +0000 |
commit | a94228021e93b27de5f1c16bfbe580f57724b73e (patch) | |
tree | ef4ae3400a1ab2fafb7f8053d553ca68a2240208 /src/map/battle.c | |
parent | f24c41af107b18bae5fccf7fd1cc483454ec6b71 (diff) | |
download | hercules-a94228021e93b27de5f1c16bfbe580f57724b73e.tar.gz hercules-a94228021e93b27de5f1c16bfbe580f57724b73e.tar.bz2 hercules-a94228021e93b27de5f1c16bfbe580f57724b73e.tar.xz hercules-a94228021e93b27de5f1c16bfbe580f57724b73e.zip |
fixing max_weapon_size
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5541 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 526b0dc68..66decc94d 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1577,7 +1577,7 @@ 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))
+ 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(flag.cri && sd->crit_atk_rate)
|