fix: Fixes ConditionTeleporter.DenyFollowers (#2284)
This commit is contained in:
parent
1f0f272915
commit
8048711483
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue