From ba4fa060d765a35507f1a73287504c3f2e440fdb Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 16 Oct 2021 22:05:02 +0200 Subject: Core/Auras: Implemented SPELL_AURA_ADD_PCT_MODIFIER_BY_SPELL_LABEL and SPELL_AURA_ADD_FLAT_MODIFIER_BY_SPELL_LABEL --- src/server/scripts/Spells/spell_druid.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp index b37be52e21a..5e068be5a77 100644 --- a/src/server/scripts/Spells/spell_druid.cpp +++ b/src/server/scripts/Spells/spell_druid.cpp @@ -729,13 +729,14 @@ public: { if (!spellMod) { - spellMod = new SpellModifier(GetAura()); - spellMod->op = SpellModOp::PeriodicHealingAndDamage; - spellMod->type = SPELLMOD_FLAT; - spellMod->spellId = GetId(); - spellMod->mask = aurEff->GetSpellEffectInfo().SpellClassMask; + SpellModifierByClassMask* mod = new SpellModifierByClassMask(GetAura()); + mod->op = SpellModOp::PeriodicHealingAndDamage; + mod->type = SPELLMOD_FLAT; + mod->spellId = GetId(); + mod->mask = aurEff->GetSpellEffectInfo().SpellClassMask; + spellMod = mod; } - spellMod->value = aurEff->GetAmount() / 7; + static_cast(spellMod)->value = aurEff->GetAmount() / 7; } void Register() override -- cgit v1.2.3