diff options
| author | Shauren <shauren.trinity@gmail.com> | 2021-10-16 22:05:02 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-10-16 22:05:02 +0200 |
| commit | ba4fa060d765a35507f1a73287504c3f2e440fdb (patch) | |
| tree | e166fc1f4de33ddb87243482d159077cda2879d8 /src/server/scripts | |
| parent | 3e81db7b9380269d4561eb5deb21fbef26913779 (diff) | |
Core/Auras: Implemented SPELL_AURA_ADD_PCT_MODIFIER_BY_SPELL_LABEL and SPELL_AURA_ADD_FLAT_MODIFIER_BY_SPELL_LABEL
Diffstat (limited to 'src/server/scripts')
| -rw-r--r-- | src/server/scripts/Spells/spell_druid.cpp | 13 |
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 |
