aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Spells/spell_druid.cpp13
1 files changed, 7 insertions, 6 deletions
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<SpellModifierByClassMask*>(spellMod)->value = aurEff->GetAmount() / 7;
}
void Register() override