mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spells: Move periodic tick count calculation from SpellInfo to SpellEffectInfo
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user