mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-23 19:52:25 +00:00
Allow negative values for avoidance to work. (debuffs)
This commit is contained in:
parent
6b107d4197
commit
9e4a21d934
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user