mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
Merge branch 'master' into Playerbot
This commit is contained in:
@@ -1026,6 +1026,9 @@ void Player::setDeathState(DeathState s, bool /*despawn = false*/)
|
||||
return;
|
||||
}
|
||||
|
||||
// clear all pending spell cast requests when dying
|
||||
SpellQueue.clear();
|
||||
|
||||
// drunken state is cleared on death
|
||||
SetDrunkValue(0);
|
||||
// lost combo points at any target (targeted combo points clear in Unit::setDeathState)
|
||||
@@ -1889,8 +1892,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:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user