fix: Fixes ConditionTeleporter.DenyFollowers (#2284)

This commit is contained in:
Kamron Batman 2025-11-29 16:28:14 -08:00 committed by GitHub
parent 1f0f272915
commit 8048711483
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -866,8 +866,7 @@ public partial class ConditionTeleporter : Teleporter
return false;
}
if (GetFlag(ConditionFlag.DenyFollowers) &&
(m.Followers != 0 || m is PlayerMobile mobile && mobile.AutoStabled?.Count != 0))
if (GetFlag(ConditionFlag.DenyFollowers) && (m.Followers != 0 || m is PlayerMobile { AutoStabled.Count: > 0 }))
{
m.SendLocalizedMessage(1077250); // No pets permitted beyond this point.
return false;