Refactors stunnable to be ECS. (#4819)
Also cleans up StandingStatesystem.
This commit is contained in:
committed by
GitHub
parent
19a588a70a
commit
6eee256b11
@@ -1,5 +1,7 @@
|
||||
using Content.Server.Stunnable.Components;
|
||||
using Content.Server.Stunnable;
|
||||
using Content.Server.Stunnable.Components;
|
||||
using Content.Shared.MobState.State;
|
||||
using Content.Shared.Stunnable;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.MobState.States
|
||||
@@ -12,7 +14,7 @@ namespace Content.Server.MobState.States
|
||||
|
||||
if (entity.TryGetComponent(out StunnableComponent? stun))
|
||||
{
|
||||
stun.CancelAll();
|
||||
EntitySystem.Get<StunSystem>().Reset(entity.Uid, stun);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user