mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-01-15 23:04:24 -05:00
Fixed issue with some creatures (i.e. holopets) not being allowed in buildings.
This commit is contained in:
@@ -613,6 +613,15 @@ bool BuildingObject::isAllowed(CreatureObject const &who) const
|
||||
if (who.hasCondition(static_cast<int>(ServerTangibleObjectTemplate::C_vendor)))
|
||||
return true;
|
||||
|
||||
// allow non-player-controlled creatures in private buildings if the *creature* has no owner
|
||||
if (!who.isPlayerControlled()
|
||||
&& who.getMasterId() == NetworkId::cms_invalid
|
||||
&& who.getLevel() < 0
|
||||
)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return CellPermissions::isOnList(m_allowed.get(), who);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user