mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
🐛 fix ener system of colorless
This commit is contained in:
parent
601d5c40a6
commit
34a66f0b94
3 changed files with 4 additions and 4 deletions
|
@ -1543,7 +1543,7 @@ Player.prototype.encodeCost = function (cost, withoutFilter) {
|
||||||
if (cost._2286) {
|
if (cost._2286) {
|
||||||
requirements.push({ count: cost.costColorless, mask: this.cardToInteger(this.lrig) })
|
requirements.push({ count: cost.costColorless, mask: this.cardToInteger(this.lrig) })
|
||||||
} else {
|
} 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 })
|
if (cost.costWhite) requirements.push({ count: cost.costWhite, mask: 1 })
|
||||||
|
@ -1554,7 +1554,7 @@ Player.prototype.encodeCost = function (cost, withoutFilter) {
|
||||||
if (!withoutFilter) {
|
if (!withoutFilter) {
|
||||||
requirements.forEach(function (item) {
|
requirements.forEach(function (item) {
|
||||||
item.filter = function (int) {
|
item.filter = function (int) {
|
||||||
return int & item.mask
|
return !int || (int & item.mask)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function RoomManager (cfg) {
|
function RoomManager (cfg) {
|
||||||
this.VERSION = 69;
|
this.VERSION = 70;
|
||||||
|
|
||||||
this.MAX_ROOMS = cfg.MAX_ROOMS;
|
this.MAX_ROOMS = cfg.MAX_ROOMS;
|
||||||
this.MAX_CLIENTS = cfg.MAX_CLIENTS;
|
this.MAX_CLIENTS = cfg.MAX_CLIENTS;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 840c4e709b84d075a1a8dc1236c750e651630c10
|
Subproject commit d37b13ab9857a79ca0da757859ce727acaf8041f
|
Loading…
Reference in a new issue