Core/Auras: Implemented SPELL_AURA_ADD_PCT_MODIFIER_BY_SPELL_LABEL and SPELL_AURA_ADD_FLAT_MODIFIER_BY_SPELL_LABEL

Port From (https://github.com/TrinityCore/TrinityCore/commit/ba4fa060d765a35507f1a73287504c3f2e440fdb)
This commit is contained in:
hondacrx
2021-10-17 09:11:00 -04:00
parent 68c4407840
commit 0b64c4a02e
8 changed files with 517 additions and 360 deletions
+7 -6
View File
@@ -598,13 +598,14 @@ namespace Scripts.Spells.Druid
{
if (spellMod == null)
{
spellMod = new SpellModifier(GetAura());
spellMod.op = SpellModOp.PeriodicHealingAndDamage;
spellMod.type = SpellModType.Flat;
spellMod.spellId = GetId();
spellMod.mask = aurEff.GetSpellEffectInfo().SpellClassMask;
SpellModifierByClassMask mod = new(GetAura());
mod.op = SpellModOp.PeriodicHealingAndDamage;
mod.type = SpellModType.Flat;
mod.spellId = GetId();
mod.mask = aurEff.GetSpellEffectInfo().SpellClassMask;
spellMod = mod;
}
spellMod.value = aurEff.GetAmount() / 7;
(spellMod as SpellModifierByClassMask).value = aurEff.GetAmount() / 7;
}
public override void Register()