mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11040] Fixed spell bonuses apply to healing from 58757
Thanks Lynx3d for help in patch writing.
This commit is contained in:
parent
f2e78cdded
commit
bf04f46011
7 changed files with 45 additions and 4 deletions
|
|
@ -2581,6 +2581,13 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
{
|
||||
if (Unit *owner = m_caster->GetOwner())
|
||||
{
|
||||
// spell have SPELL_DAMAGE_CLASS_NONE and not get bonuses from owner, use main spell for bonuses
|
||||
if (m_triggeredBySpellInfo)
|
||||
{
|
||||
damage = int32(owner->SpellHealingBonusDone(unitTarget, m_triggeredBySpellInfo, damage, HEAL));
|
||||
damage = int32(unitTarget->SpellHealingBonusTaken(owner, m_triggeredBySpellInfo, damage, HEAL));
|
||||
}
|
||||
|
||||
// Restorative Totems
|
||||
Unit::AuraList const& mDummyAuras = owner->GetAurasByType(SPELL_AURA_DUMMY);
|
||||
for(Unit::AuraList::const_iterator i = mDummyAuras.begin(); i != mDummyAuras.end(); ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue