Core/Auras: Remove m_effIndex member of AuraEffect and always take it from SpellEffectInfo
Port From (https://github.com/TrinityCore/TrinityCore/commit/efdca47aff354079bc73d248e022c2e914d94e7b)
This commit is contained in:
@@ -428,7 +428,7 @@ namespace Scripts.Spells.Druid
|
||||
spellMod.op = SpellModOp.Dot;
|
||||
spellMod.type = SpellModType.Flat;
|
||||
spellMod.spellId = GetId();
|
||||
spellMod.mask = GetSpellInfo().GetEffect(aurEff.GetEffIndex()).SpellClassMask;
|
||||
spellMod.mask = aurEff.GetSpellEffectInfo().SpellClassMask;
|
||||
}
|
||||
spellMod.value = aurEff.GetAmount() / 7;
|
||||
}
|
||||
|
||||
@@ -1610,14 +1610,14 @@ namespace Scripts.Spells.Quest
|
||||
|
||||
// 51769 - Emblazon Runeblade
|
||||
[Script]
|
||||
class spell_q12619_emblazon_runeblade : AuraScript
|
||||
class spell_q12619_emblazon_runeblade_AuraScript : AuraScript
|
||||
{
|
||||
void HandleEffectPeriodic(AuraEffect aurEff)
|
||||
{
|
||||
PreventDefaultAction();
|
||||
Unit caster = GetCaster();
|
||||
if (caster)
|
||||
caster.CastSpell(caster, GetSpellInfo().GetEffect(aurEff.GetEffIndex()).TriggerSpell, true, null, aurEff);
|
||||
caster.CastSpell(caster, aurEff.GetSpellEffectInfo().TriggerSpell, true, null, aurEff);
|
||||
}
|
||||
|
||||
public override void Register()
|
||||
@@ -1628,7 +1628,7 @@ namespace Scripts.Spells.Quest
|
||||
|
||||
// 51770 - Emblazon Runeblade
|
||||
[Script]
|
||||
class spell_q12619_emblazon_runeblade_effect : SpellScript
|
||||
class spell_q12619_emblazon_runeblade : SpellScript
|
||||
{
|
||||
void HandleScript(uint effIndex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user