From efdca47aff354079bc73d248e022c2e914d94e7b Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 11 Mar 2021 10:32:03 +0100 Subject: Core/Auras: Remove m_effIndex member of AuraEffect and always take it from SpellEffectInfo --- src/server/scripts/Spells/spell_druid.cpp | 2 +- src/server/scripts/Spells/spell_quest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Spells') diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp index e79bf4579df..80cee09da89 100644 --- a/src/server/scripts/Spells/spell_druid.cpp +++ b/src/server/scripts/Spells/spell_druid.cpp @@ -519,7 +519,7 @@ public: spellMod->op = SPELLMOD_DOT; spellMod->type = SPELLMOD_FLAT; spellMod->spellId = GetId(); - spellMod->mask = GetSpellInfo()->GetEffect(aurEff->GetEffIndex())->SpellClassMask; + spellMod->mask = aurEff->GetSpellEffectInfo()->SpellClassMask; } spellMod->value = aurEff->GetAmount() / 7; } diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index 68287bf2c64..47293321ad5 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -2215,7 +2215,7 @@ class spell_q12619_emblazon_runeblade : public SpellScriptLoader { PreventDefaultAction(); if (Unit* caster = GetCaster()) - caster->CastSpell(caster, GetSpellInfo()->GetEffect(aurEff->GetEffIndex())->TriggerSpell, true, nullptr, aurEff); + caster->CastSpell(caster, aurEff->GetSpellEffectInfo()->TriggerSpell, true, nullptr, aurEff); } void Register() override -- cgit v1.2.3