From d4b7bc5aa328e200bb087672d00c07776f98edce Mon Sep 17 00:00:00 2001 From: keronshb <54602815+keronshb@users.noreply.github.com> Date: Sat, 13 Apr 2024 11:26:51 -0400 Subject: [PATCH] Fixes polymorph cooldowns (#26914) fixes polymorph cooldowns --- Content.Server/Polymorph/Systems/PolymorphSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/Polymorph/Systems/PolymorphSystem.cs b/Content.Server/Polymorph/Systems/PolymorphSystem.cs index b7640ff984..8cae15d70d 100644 --- a/Content.Server/Polymorph/Systems/PolymorphSystem.cs +++ b/Content.Server/Polymorph/Systems/PolymorphSystem.cs @@ -118,10 +118,12 @@ public sealed partial class PolymorphSystem : EntitySystem private void OnPolymorphActionEvent(Entity ent, ref PolymorphActionEvent args) { - if (!_proto.TryIndex(args.ProtoId, out var prototype)) + if (!_proto.TryIndex(args.ProtoId, out var prototype) || args.Handled) return; PolymorphEntity(ent, prototype.Configuration); + + args.Handled = true; } private void OnRevertPolymorphActionEvent(Entity ent, -- 2.51.2