Core/Spells: fixed Blessing of the Eternal always triggering after meeting the condition once

This commit is contained in:
Ovahlord
2018-03-23 11:43:02 +01:00
parent c354b346ce
commit d14b4d05fe

View File

@@ -1204,7 +1204,8 @@ void Spell::EffectHeal(SpellEffIndex effIndex)
if (AuraEffect const* aurEff = caster->GetDummyAuraEffect(SPELLFAMILY_SHAMAN, 3157, EFFECT_1))
if (unitTarget->HealthBelowPct(35))
if (roll_chance_i(aurEff->GetAmount()))
m_caster->CastSpell(unitTarget, 52007, true, nullptr, aurEff);
if (SpellInfo const* earthLivingSpell = sSpellMgr->GetSpellInfo(52007))
m_caster->CastSpell(unitTarget, earthLivingSpell->Effects[EFFECT_0].TriggerSpell, true, nullptr, aurEff);
// Vessel of the Naaru (Vial of the Sunwell trinket)
if (m_spellInfo->Id == 45064)