mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Merge pull request #4273 from elecyb/healtotem
Core/Spells: Fix for Healing Stream Totem bonus and Glyph of Healing Stream Totem
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
DELETE FROM `spell_bonus_data` WHERE `entry` IN (52042,5672);
|
||||
INSERT INTO `spell_bonus_data` (`entry`, `direct_bonus`, `dot_bonus`,`ap_bonus`, `ap_dot_bonus`, `comments`) VALUES
|
||||
('5672','0.0827','-1','-1','-1','Shaman - Healing Stream Totem Rank 1');
|
||||
@@ -1421,11 +1421,19 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
|
||||
{
|
||||
if (!unitTarget)
|
||||
return;
|
||||
// Restorative Totems
|
||||
if (Unit* owner = m_caster->GetOwner())
|
||||
{
|
||||
if (m_triggeredByAuraSpell)
|
||||
damage = int32(owner->SpellHealingBonus(unitTarget, m_triggeredByAuraSpell, damage, HEAL));
|
||||
|
||||
// Restorative Totems
|
||||
if (AuraEffect* dummy = owner->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_SHAMAN, 338, 1))
|
||||
AddPctN(damage, dummy->GetAmount());
|
||||
|
||||
// Glyph of Healing Stream Totem
|
||||
if (AuraEffect const* aurEff = owner->GetAuraEffect(55456, EFFECT_0))
|
||||
AddPctN(damage, aurEff->GetAmount());
|
||||
}
|
||||
m_caster->CastCustomSpell(unitTarget, 52042, &damage, 0, 0, true, 0, 0, m_originalCasterGUID);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user