1
0
mirror of https://bitbucket.org/seefoe/src.git synced 2026-01-16 23:04:30 -05:00

Fixed issue with some creatures (i.e. holopets) not being allowed in buildings.

This commit is contained in:
CekisSWG
2018-05-05 18:13:08 +01:00
committed by seefo
parent 57bf1680b0
commit 3a92649968

View File

@@ -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);
}
}