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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user