diff options
| author | Shauren <shauren.trinity@gmail.com> | 2021-03-11 10:32:03 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-03-11 10:32:03 +0100 |
| commit | efdca47aff354079bc73d248e022c2e914d94e7b (patch) | |
| tree | de947af2dd08cd204b2610aab894e0fffe06c5c1 /src/server/scripts/Spells | |
| parent | f4ff0489ca0df27ebca37b8423b8dab61f2978cc (diff) | |
Core/Auras: Remove m_effIndex member of AuraEffect and always take it from SpellEffectInfo
Diffstat (limited to 'src/server/scripts/Spells')
| -rw-r--r-- | src/server/scripts/Spells/spell_druid.cpp | 2 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_quest.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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 |
