From: keronshb <54602815+keronshb@users.noreply.github.com> Date: Sat, 13 Apr 2024 15:26:51 +0000 (-0400) Subject: Fixes polymorph cooldowns (#26914) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=d4b7bc5aa328e200bb087672d00c07776f98edce;p=space-station-14.git Fixes polymorph cooldowns (#26914) fixes polymorph cooldowns --- 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,