Core/Mechanic: Remove unneeded(now) argument.
This commit is contained in:
@@ -1876,7 +1876,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
inline void RecalculateRating(CombatRating cr) { ApplyRatingMod(cr, 0, true);}
|
||||
float GetMeleeCritFromAgility();
|
||||
void GetDodgeFromAgility(float &diminishing, float &nondiminishing);
|
||||
float GetMissPercentageFromDefence(WeaponAttackType attType) const;
|
||||
float GetMissPercentageFromDefence() const;
|
||||
float GetSpellCritFromIntellect();
|
||||
float OCTRegenHPPerSpirit();
|
||||
float OCTRegenMPPerSpirit();
|
||||
|
||||
@@ -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