From a6dbba198fb2082e647a1f896e36f2a82af1d751 Mon Sep 17 00:00:00 2001 From: exane Date: Fri, 3 Jul 2015 09:47:28 +0200 Subject: [PATCH] do card reset even if card is keeping on field (monster ability) after round end --- server/Field.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/server/Field.js b/server/Field.js index 5907893..f4b3b3d 100644 --- a/server/Field.js +++ b/server/Field.js @@ -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)); }