* add a type specifier where one was forgor
* Fix other way because degub conditions
* okay this feels kinda dumb but it does fix it.
* Update Content.Client/Effects/ColorFlashEffectSystem.cs
---------
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
continue;
}
-#if DEBUG
if (!TryComp(ent, out ColorFlashEffectComponent? comp))
{
+#if DEBUG
DebugTools.Assert(!_animation.HasRunningAnimation(ent, AnimationKey));
- }
#endif
+ }
_animation.Stop(ent, AnimationKey);
var animation = GetDamageAnimation(ent, color, sprite);
continue;
}
- comp = EnsureComp<ColorFlashEffectComponent>(ent);
+ EnsureComp<ColorFlashEffectComponent>(ent, out comp);
comp.NetSyncEnabled = false;
comp.Color = sprite.Color;