Core/Spells: removed miss chance cap for melee attacks
This commit is contained in:
1 parent
41e88fe548
commit
9784be7fce
4 files changed
+12
-33
No files matched your search
@@ -12749,12 +12749,15 @@ float Unit::MeleeSpellMissChance(Unit const* victim, WeaponAttackType attType, u
|
||||
else
|
||||
missChance -= m_modMeleeHitChance;
|
||||
|
||||
// Limit miss chance from 0 to 60%
|
||||
if (missChance < 0.0f)
|
||||
return 0.0f;
|
||||
if (missChance > 60.0f)
|
||||
return 60.0f;
|
||||
return missChance;
|
||||
// miss chance from auras after calculating skill based miss
|
||||
missChance -= GetTotalAuraModifier(SPELL_AURA_MOD_HIT_CHANCE);
|
||||
|
||||
if (attType == RANGED_ATTACK)
|
||||
missChance -= victim->GetTotalAuraModifier(SPELL_AURA_MOD_ATTACKER_RANGED_HIT_CHANCE);
|
||||
else
|
||||
missChance -= victim->GetTotalAuraModifier(SPELL_AURA_MOD_ATTACKER_MELEE_HIT_CHANCE);
|
||||
|
||||
return std::max(missChance, 0.f);
|
||||
}
|
||||
|
||||
void Unit::OnPhaseChange()
|
||||
|
||||
Reference in new issue
Block a user