Core/Mechanic: Remove unneeded(now) argument.
This commit is contained in:
@@ -639,7 +639,7 @@ const float m_diminishing_k[MAX_CLASSES] =
|
||||
0.9720f // Druid
|
||||
};
|
||||
|
||||
float Player::GetMissPercentageFromDefence(WeaponAttackType attType) const
|
||||
float Player::GetMissPercentageFromDefence() const
|
||||
{
|
||||
const float miss_cap[MAX_CLASSES] =
|
||||
{
|
||||
|
||||
@@ -2724,7 +2724,7 @@ float Unit::GetUnitMissChance(WeaponAttackType attType) const
|
||||
float miss_chance = 5.00f;
|
||||
|
||||
if (Player const* player = ToPlayer())
|
||||
miss_chance += player->GetMissPercentageFromDefence(attType);
|
||||
miss_chance += player->GetMissPercentageFromDefence();
|
||||
|
||||
if (attType == RANGED_ATTACK)
|
||||
miss_chance -= GetTotalAuraModifier(SPELL_AURA_MOD_ATTACKER_RANGED_HIT_CHANCE);
|
||||
|
||||
Reference in New Issue
Block a user