Parcourir la source

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/trunk@14457 54d463be-8e91-2dee-dedb-b68131a5f0ec
Paradox924X il y a 14 ans
Parent
commit
502194d7a6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/map/battle.c

+ 1 - 1
src/map/battle.c

@@ -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)
 				if(sd)
 				{
-					if (sd->atk_rate != 100)
+					if (sd->atk_rate)
 						ATK_ADDRATE(sd->atk_rate);
 
 					if(flag.cri && sd->crit_atk_rate)