[MIRROR] Fix traitor uplinks not letting you buy items that aren't restricted [MDB IGNORE] (#9412)

* Fix restricted roles change breaking uplinks (#62772)

* Fix traitor uplinks not letting you buy items that aren't restricted

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-11-12 07:35:51 -05:00
committed by GitHub
co-authored by Mothblocks
parent 397f0e1526
commit 48c2849e1d
+1 -1
View File
@@ -241,7 +241,7 @@
return
if (!user || user.incapacitated())
return
if(!(user.mind.assigned_role.title in U.restricted_roles))
if(U.restricted_roles.len && !(user.mind.assigned_role.title in U.restricted_roles))
return
if(telecrystals < U.cost || U.limited_stock == 0)