Core/Entities: Spirit no longer affects HP regen

This commit is contained in:
Subv
2012-08-18 15:02:03 -05:00
parent 6c14a51fe4
commit f1f33ff09b
2 changed files with 1 additions and 22 deletions
+1 -21
View File
@@ -2699,7 +2699,7 @@ void Player::RegenerateHealth()
// normal regen case (maybe partly in combat case)
else if (!isInCombat() || HasAuraType(SPELL_AURA_MOD_REGEN_DURING_COMBAT))
{
addvalue = OCTRegenHPPerSpirit() * HealthIncreaseRate;
addvalue = HealthIncreaseRate;
if (!isInCombat())
{
AuraEffectList const& mModHealthRegenPct = GetAuraEffectsByType(SPELL_AURA_MOD_HEALTH_REGEN_PERCENT);
@@ -5864,26 +5864,6 @@ float Player::GetExpertiseDodgeOrParryReduction(WeaponAttackType attType) const
return 0.0f;
}
float Player::OCTRegenHPPerSpirit()
{
/*
uint8 level = getLevel();
uint32 pclass = getClass();
if (level > GT_MAX_LEVEL)
level = GT_MAX_LEVEL;
*/
// Formula from PaperDollFrame script
float spirit = GetStat(STAT_SPIRIT);
float baseSpirit = spirit;
if (baseSpirit > 50)
baseSpirit = 50;
float moreSpirit = spirit - baseSpirit;
float regen = baseSpirit + moreSpirit;
return regen;
}
float Player::OCTRegenMPPerSpirit()
{
uint8 level = getLevel();
-1
View File
@@ -1955,7 +1955,6 @@ class Player : public Unit, public GridObject<Player>
float GetMeleeCritFromAgility();
void GetDodgeFromAgility(float &diminishing, float &nondiminishing);
float GetSpellCritFromIntellect();
float OCTRegenHPPerSpirit();
float OCTRegenMPPerSpirit();
float GetRatingMultiplier(CombatRating cr) const;
float GetRatingBonusValue(CombatRating cr) const;