Core/Items: Implemented spell penetration stat on items and use it from enchantments, original patch by zergtmn

This commit is contained in:
Shauren
2010-12-31 22:59:36 +01:00
parent 8ab453b465
commit cf62d7b776
4 changed files with 22 additions and 23 deletions
+2
View File
@@ -1801,6 +1801,7 @@ class Player : public Unit, public GridObject<Player>
float GetRatingCoefficient(CombatRating cr) const;
float GetRatingBonusValue(CombatRating cr) const;
uint32 GetBaseSpellPowerBonus() { return m_baseSpellPower; }
int32 GetSpellPenetrationItemMod() const { return m_spellPenetrationItemMod; }
float GetExpertiseDodgeOrParryReduction(WeaponAttackType attType) const;
void UpdateBlockPercentage();
@@ -2539,6 +2540,7 @@ class Player : public Unit, public GridObject<Player>
uint32 m_baseFeralAP;
uint32 m_baseManaRegen;
uint32 m_baseHealthRegen;
int32 m_spellPenetrationItemMod;
SpellModList m_spellMods[MAX_SPELLMOD];
//uint32 m_pad;