[11040] Fixed spell bonuses apply to healing from 58757

Thanks Lynx3d for help in patch writing.
This commit is contained in:
VladimirMangos 2011-01-18 21:46:17 +03:00
parent f2e78cdded
commit bf04f46011
7 changed files with 45 additions and 4 deletions

View file

@ -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)