Changed the check prior to adding to the attack rate so it ensures the value is non-zero instead of not 100.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14457 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
45826cbbc5
commit
a9c0bc7924
@ -1395,7 +1395,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
|
|||||||
//Add any bonuses that modify the base baseatk+watk (pre-skills)
|
//Add any bonuses that modify the base baseatk+watk (pre-skills)
|
||||||
if(sd)
|
if(sd)
|
||||||
{
|
{
|
||||||
if (sd->atk_rate != 100)
|
if (sd->atk_rate)
|
||||||
ATK_ADDRATE(sd->atk_rate);
|
ATK_ADDRATE(sd->atk_rate);
|
||||||
|
|
||||||
if(flag.cri && sd->crit_atk_rate)
|
if(flag.cri && sd->crit_atk_rate)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user