]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix followers getting sent to nullspace when target is polymorphed (#33878)
authorTayrtahn <tayrtahn@gmail.com>
Tue, 11 Feb 2025 21:34:24 +0000 (16:34 -0500)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2025 21:34:24 +0000 (22:34 +0100)
commit46b19291eae7311c3ee946e45432f0552328792d
treeb30ec5e30dc6fc3cdb129a9d7ff0205367c829a1
parentfa020ceef311825a9edf6bddff0e9b7a15cd0c15
Fix followers getting sent to nullspace when target is polymorphed (#33878)

* Add an event for polymorph actions

* Subscribe FollowerSystem to the event

* Add check that unfollow target is actually current target.

* Make followers try to follow on state update; Dirty follower on follow.
Content.Server/Polymorph/Systems/PolymorphSystem.cs
Content.Shared/Follower/Components/FollowerComponent.cs
Content.Shared/Follower/FollowerSystem.cs
Content.Shared/Polymorph/PolymorphEvents.cs [new file with mode: 0644]