Core/Spells: Holy Power decay timer will now be reset when getting a charge of holy power

This commit is contained in:
Ovahlord committed 2019-04-16 15:05:00 +02:00
1 parent 463c2d9045
commit 319b019080
2 files changed
+5

No files matched your search

+3
View File
@@ -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);
}