From fef997614d5c5451c5c9068830888e5d947128f8 Mon Sep 17 00:00:00 2001 From: exane Date: Fri, 19 Jun 2015 17:34:16 +0200 Subject: [PATCH] card type fix --- server/Card.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/Card.js b/server/Card.js index 7dc17df..ebb639f 100644 --- a/server/Card.js +++ b/server/Card.js @@ -18,6 +18,7 @@ var Card = (function(){ this._forcedPower = -1; this._init(); + }; var r = Card.prototype; /** @@ -96,7 +97,7 @@ var Card = (function(){ return this._data.musterType || null; } r.getType = function(){ - return typeof this._changedType === "undefined" ? this._data.type : this._changedType; + return this._changedType == null ? this._data.type : this._changedType; } r.changeType = function(type) { this._changedType = type;