Core/Spells: Define all spell modifier types and implement ProcCooldown mod and PeriodicHealingAndDamage for melee periodic damage

Port From (https://github.com/TrinityCore/TrinityCore/commit/6585666e6e34ade0333e4c23876acdf847d169c0)
This commit is contained in:
hondacrx
2021-03-17 18:52:59 -04:00
parent f667df1b11
commit 4568cdad48
16 changed files with 168 additions and 158 deletions
+1 -1
View File
@@ -415,7 +415,7 @@ namespace Scripts.Spells.Druid
if (spellMod == null)
{
spellMod = new SpellModifier(GetAura());
spellMod.op = SpellModOp.Dot;
spellMod.op = SpellModOp.PeriodicHealingAndDamage;
spellMod.type = SpellModType.Flat;
spellMod.spellId = GetId();
spellMod.mask = aurEff.GetSpellEffectInfo().SpellClassMask;
+1 -1
View File
@@ -279,7 +279,7 @@ namespace Scripts.Spells.Warlock
Player modOwner = caster.GetSpellModOwner();
if (modOwner)
modOwner.ApplySpellMod(GetSpellInfo(), SpellModOp.Cost, ref damage);
modOwner.ApplySpellMod(GetSpellInfo(), SpellModOp.PowerCost0, ref damage);
SpellNonMeleeDamage damageInfo = new SpellNonMeleeDamage(caster, caster, GetSpellInfo(), GetAura().GetSpellVisual(), GetSpellInfo().SchoolMask, GetAura().GetCastGUID());
damageInfo.periodicLog = true;