Core/Spells: Move periodic tick count calculation from SpellInfo to SpellEffectInfo

This commit is contained in:
Shauren
2026-01-03 12:18:49 +01:00
parent 7806a92154
commit a80e33a674
11 changed files with 67 additions and 91 deletions

View File

@@ -958,7 +958,7 @@ struct npc_thorim_trashAI : public ScriptedAI
heal += spellEffectInfo.CalcValue(caster);
if (spellEffectInfo.IsEffect(SPELL_EFFECT_APPLY_AURA) && spellEffectInfo.IsAura(SPELL_AURA_PERIODIC_HEAL))
heal += spellInfo->GetMaxTicks() * spellEffectInfo.CalcValue(caster);
heal += spellEffectInfo.GetPeriodicTickCount() * spellEffectInfo.CalcValue(caster);
}
return heal;
}