1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-11-20 11:26:54 +00:00

card type fix

This commit is contained in:
exane 2015-06-19 17:34:16 +02:00
parent 0cdce4b543
commit fef997614d

View File

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