mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +00:00
do card reset even if card is keeping on field (monster ability) after round end
This commit is contained in:
parent
2c674a2191
commit
a6dbba198f
@ -88,19 +88,12 @@ var Field = (function(){
|
||||
r.removeAll = function(){
|
||||
var tmp = this._cards.slice();
|
||||
var self = this;
|
||||
/*tmp.forEach(function(card){
|
||||
card.reset();
|
||||
for(var event in card._uidEvents) {
|
||||
self.side.off(event, card.getUidEvents(event));
|
||||
}
|
||||
})*/
|
||||
for(var i = 0; i < tmp.length; i++) {
|
||||
var card = tmp[i];
|
||||
card.reset();
|
||||
if(card.__lock){
|
||||
//delete card.__lock;
|
||||
continue;
|
||||
}
|
||||
card.reset();
|
||||
for(var event in card._uidEvents) {
|
||||
self.side.off(event, card.getUidEvents(event));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user