Add back .clevel check at compound

This commit is contained in:
Kaan Soral
2023-12-11 21:20:21 +03:00
parent 03ab294896
commit 8586051f4b
+1 -1
View File
@@ -5684,7 +5684,7 @@ function init_io() {
if (!scroll) { if (!scroll) {
return socket.emit("game_response", "compound_no_scroll"); return socket.emit("game_response", "compound_no_scroll");
} }
if (!item0 || !item1 || !item2) { if (!item0 || !item1 || !item2 || (item0.level || 0) != data.clevel) {
return fail_response("no_item"); return fail_response("no_item");
} }
if (!player.computer && simple_distance(G.maps.main.compound, player) > B.sell_dist) { if (!player.computer && simple_distance(G.maps.main.compound, player) > B.sell_dist) {