Allow negative values for avoidance to work. (debuffs)

This commit is contained in:
KayenEQ 2014-07-23 13:13:51 -04:00
parent 6b107d4197
commit 9e4a21d934

View File

@ -278,7 +278,7 @@ bool Mob::CheckHitChance(Mob* other, SkillUseTypes skillinuse, int Hand, int16 c
bonus += (owner->aabonuses.PetAvoidance + owner->spellbonuses.PetAvoidance + owner->itembonuses.PetAvoidance)*10;
}
if(bonus > 0) {
if(bonus) {
chancetohit -= ((bonus * chancetohit) / 1000);
mlog(COMBAT__TOHIT, "Applied avoidance chance %.2f/10, yeilding %.2f", bonus, chancetohit);
}