Core/Mechanic: Remove unneeded(now) argument.

This commit is contained in:
Chaplain
2011-09-07 11:04:20 +03:00
parent c190326de4
commit dcc3b2e341
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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] =
{
+1 -1
View File
@@ -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);