From 9e4a21d93466b9bb048492b2a2c1e2029f60806c Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Wed, 23 Jul 2014 13:13:51 -0400 Subject: [PATCH] Allow negative values for avoidance to work. (debuffs) --- zone/attack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/attack.cpp b/zone/attack.cpp index bf83c64fb..4c49b9187 100644 --- a/zone/attack.cpp +++ b/zone/attack.cpp @@ -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); }