1
0
Fork 0

🐛 fix ener system of colorless

This commit is contained in:
WEBXOSS 2017-08-23 21:46:26 +08:00
parent 601d5c40a6
commit 34a66f0b94
3 changed files with 4 additions and 4 deletions

View file

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

View file

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

@ -1 +1 @@
Subproject commit 840c4e709b84d075a1a8dc1236c750e651630c10
Subproject commit d37b13ab9857a79ca0da757859ce727acaf8041f