Core/Spells: Holy Power decay timer will now be reset when getting a charge of holy power
This commit is contained in:
1 parent
463c2d9045
commit
319b019080
2 files changed
+5
No files matched your search
@@ -6576,6 +6576,9 @@ void Unit::EnergizeBySpell(Unit* victim, uint32 spellId, int32 damage, Powers po
|
||||
// needs to be called after sending spell log
|
||||
victim->ModifyPower(powerType, damage);
|
||||
|
||||
if (powerType == POWER_HOLY_POWER && GetTypeId() == TYPEID_PLAYER)
|
||||
ToPlayer()->ResetHolyPowerRegenerationTimer();
|
||||
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
||||
victim->getHostileRefManager().threatAssist(this, float(damage) * 0.5f, spellInfo);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user