fix: Fixes combat timers (#824)

This commit is contained in:
Kamron Batman 2021-10-11 23:53:17 -07:00 committed by GitHub
parent 9f0144dd08
commit f4302928bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -916,8 +916,15 @@ namespace Server
else
{
m_NetState.SendChangeCombatant(m_Combatant.Serial);
Timer.StartTimer(ExpireCombatantDelay, ExpireCombatant, out _expireCombatantTimerToken);
Timer.StartTimer(TimeSpan.FromSeconds(0.01), 0, CheckCombatTime, out _combatTimerToken);
if (!_expireCombatantTimerToken.Running)
{
Timer.StartTimer(ExpireCombatantDelay, ExpireCombatant, out _expireCombatantTimerToken);
}
if (!_combatTimerToken.Running)
{
Timer.StartTimer(TimeSpan.FromSeconds(0.01), 0, CheckCombatTime, out _combatTimerToken);
}
if (CanBeHarmful(m_Combatant, false))
{