Stuttering time accumulation fix. (#5817)

This commit is contained in:
pointer-to-null
2021-12-20 02:27:07 +03:00
committed by GitHub
parent 17fd5096d5
commit 07c6f39a6f

View File

@@ -33,10 +33,7 @@ namespace Content.Server.Speech.EntitySystems
if (!Resolve(uid, ref status, false))
return;
if (!_statusEffectsSystem.HasStatusEffect(uid, StutterKey, status))
_statusEffectsSystem.TryAddStatusEffect<StutteringAccentComponent>(uid, StutterKey, time, refresh, status, alerts);
else
_statusEffectsSystem.TryAddTime(uid, StutterKey, time, status);
_statusEffectsSystem.TryAddStatusEffect<StutteringAccentComponent>(uid, StutterKey, time, refresh, status, alerts);
}
private void OnAccent(EntityUid uid, StutteringAccentComponent component, AccentGetEvent args)