* Refactor standing to be ECS E C S B A B Y * DONE * FIX IT FIX IT FIX IT * IsDown event * Change to methods * Fixes * Address some reviews * Last of the Mohicans * Final fixes * Fix tests
20 lines
479 B
C#
20 lines
479 B
C#
using Content.Server.Stunnable.Components;
|
|
using Content.Shared.MobState.State;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Server.MobState.States
|
|
{
|
|
public class CriticalMobState : SharedCriticalMobState
|
|
{
|
|
public override void EnterState(IEntity entity)
|
|
{
|
|
base.EnterState(entity);
|
|
|
|
if (entity.TryGetComponent(out StunnableComponent? stun))
|
|
{
|
|
stun.CancelAll();
|
|
}
|
|
}
|
|
}
|
|
}
|