[8530] Correctly restore powers with energize-effect spells like Shadowfiend or Mana Tide Totem

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Maxxie 2009-09-25 15:11:47 +03:00 committed by tomrus88
parent a202347079
commit 3c89d50d10
2 changed files with 2 additions and 2 deletions

View file

@ -8074,7 +8074,7 @@ void Unit::EnergizeBySpell(Unit *pVictim, uint32 SpellID, uint32 Damage, Powers
{
SendEnergizeSpellLog(pVictim, SpellID, Damage, powertype);
// needs to be called after sending spell log
ModifyPower(powertype, Damage);
pVictim->ModifyPower(powertype, Damage);
}
uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack)