diff --git a/Player.js b/Player.js index 1c8e63d..d8db52d 100644 --- a/Player.js +++ b/Player.js @@ -1543,7 +1543,7 @@ Player.prototype.encodeCost = function (cost, withoutFilter) { if (cost._2286) { requirements.push({ count: cost.costColorless, mask: this.cardToInteger(this.lrig) }) } else { - requirements.push({ count: cost.costColorless, mask: 31 }) + requirements.push({ count: cost.costColorless, mask: 0 }) } } if (cost.costWhite) requirements.push({ count: cost.costWhite, mask: 1 }) @@ -1554,7 +1554,7 @@ Player.prototype.encodeCost = function (cost, withoutFilter) { if (!withoutFilter) { requirements.forEach(function (item) { item.filter = function (int) { - return int & item.mask + return !int || (int & item.mask) } }) } diff --git a/RoomManager.js b/RoomManager.js index fa40a87..c25139e 100644 --- a/RoomManager.js +++ b/RoomManager.js @@ -1,7 +1,7 @@ 'use strict'; function RoomManager (cfg) { - this.VERSION = 69; + this.VERSION = 70; this.MAX_ROOMS = cfg.MAX_ROOMS; this.MAX_CLIENTS = cfg.MAX_CLIENTS; diff --git a/webxoss-client b/webxoss-client index 840c4e7..d37b13a 160000 --- a/webxoss-client +++ b/webxoss-client @@ -1 +1 @@ -Subproject commit 840c4e709b84d075a1a8dc1236c750e651630c10 +Subproject commit d37b13ab9857a79ca0da757859ce727acaf8041f