Skip to content

Commit

Permalink
Fix(Core/Player): Energy regen rate bonuses (azerothcore#20321)
Browse files Browse the repository at this point in the history
  • Loading branch information
IntelligentQuantum authored Dec 12, 2024
1 parent f1d9c16 commit 9f37794
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/server/game/Entities/Player/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1889,8 +1889,27 @@ void Player::Regenerate(Powers power)
}
}
break;
case POWER_ENERGY: // Regenerate energy (rogue)
addvalue += 0.01f * m_regenTimer * sWorld->getRate(RATE_POWER_ENERGY);
case POWER_ENERGY:
{
float baseRegenRate = 10.0f * sWorld->getRate(RATE_POWER_ENERGY);
float hasteModifier = 1.0f;

// Apply Vitality
if (HasAura(61329))
hasteModifier += 0.25f;

// Apply Overkill
if (HasAura(58426))
hasteModifier += 0.30f;

// Apply Adrenaline Rush
if (HasAura(13750))
hasteModifier += 1.0f;

float adjustedRegenRate = baseRegenRate * hasteModifier;

addvalue += adjustedRegenRate * 0.001f * m_regenTimer;
}
break;
case POWER_RUNIC_POWER:
{
Expand Down

0 comments on commit 9f37794

Please sign in to comment.