fix Restorative Totems

--HG--
branch : trunk
This commit is contained in:
Win32
2010-01-04 11:05:19 +02:00
parent baf0cfa6d8
commit e8ebeff6bf

View File

@@ -1958,7 +1958,13 @@ void Spell::EffectDummy(uint32 i)
// Healing Stream Totem
if(m_spellInfo->SpellFamilyFlags[0] & SPELLFAMILYFLAG_SHAMAN_HEALING_STREAM)
{
if (unitTarget)
if (!unitTarget)
return;
// Restorative Totems
if(Unit *owner = m_caster->GetOwner())
if (AuraEffect *dummy = owner->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_SHAMAN, 338, 1))
damage += damage * dummy->GetAmount() / 100;
m_caster->CastCustomSpell(unitTarget, 52042, &damage, 0, 0, true, 0, 0, m_originalCasterGUID);
return;
}