Core/Spells: Regenerating POWER_HAPPINESS should not generate additional threat. (#7146)
Fixed #6190 Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
parent
49cc3777e9
commit
8522809bb3
1 changed files with 5 additions and 2 deletions
|
|
@ -10719,8 +10719,11 @@ void Unit::EnergizeBySpell(Unit* victim, uint32 spellID, uint32 damage, Powers p
|
|||
// needs to be called after sending spell log
|
||||
victim->ModifyPower(powerType, damage);
|
||||
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellID);
|
||||
victim->getHostileRefManager().threatAssist(this, float(damage) * 0.5f, spellInfo);
|
||||
if (powerType != POWER_HAPPINESS)
|
||||
{
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellID);
|
||||
victim->getHostileRefManager().threatAssist(this, float(damage) * 0.5f, spellInfo);
|
||||
}
|
||||
}
|
||||
|
||||
float Unit::SpellPctDamageModsDone(Unit* victim, SpellInfo const* spellProto, DamageEffectType damagetype)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue