Core/Auras: Implemented SPELL_AURA_ADD_PCT_MODIFIER_BY_SPELL_LABEL and SPELL_AURA_ADD_FLAT_MODIFIER_BY_SPELL_LABEL

This commit is contained in:
Shauren
2021-10-16 22:05:02 +02:00
parent 3e81db7b93
commit ba4fa060d7
7 changed files with 227 additions and 69 deletions

View File

@@ -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