Core/Spells: Recuperate will now have its done ticks reset when being refreshed by Deadly Momentum to continue healing beyond its initial duration

This commit is contained in:
Ovahlord committed 2023-06-14 16:52:23 +02:00
1 parent 322743f5f7
commit 82e27f72af
1 file changed
+5
@@ -1014,8 +1014,13 @@ class spell_rog_deadly_momentum : public AuraScript
// Recuperate duration refreshing
if (AuraEffect* recuperate = target->GetAuraEffect(SPELL_AURA_PERIODIC_HEAL, SPELLFAMILY_ROGUE, 0, 0x08000000, 0))
{
if (spell_rog_recuperate* script = recuperate->GetBase()->GetScript<spell_rog_recuperate>("spell_rog_recuperate"))
{
recuperate->GetBase()->SetDuration(script->Duration);
recuperate->ResetTicks();
}
}
}
void Register() override