mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
fix Restorative Totems
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user