Stuttering time accumulation fix. (#5817)
This commit is contained in:
@@ -33,10 +33,7 @@ namespace Content.Server.Speech.EntitySystems
|
|||||||
if (!Resolve(uid, ref status, false))
|
if (!Resolve(uid, ref status, false))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!_statusEffectsSystem.HasStatusEffect(uid, StutterKey, status))
|
_statusEffectsSystem.TryAddStatusEffect<StutteringAccentComponent>(uid, StutterKey, time, refresh, status, alerts);
|
||||||
_statusEffectsSystem.TryAddStatusEffect<StutteringAccentComponent>(uid, StutterKey, time, refresh, status, alerts);
|
|
||||||
else
|
|
||||||
_statusEffectsSystem.TryAddTime(uid, StutterKey, time, status);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnAccent(EntityUid uid, StutteringAccentComponent component, AccentGetEvent args)
|
private void OnAccent(EntityUid uid, StutteringAccentComponent component, AccentGetEvent args)
|
||||||
|
|||||||
Reference in New Issue
Block a user