1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-11-23 19:36:53 +00:00

fix forcedPower with basicPower 0

This commit is contained in:
exane 2015-06-19 18:48:40 +02:00
parent 0da37aa4b8
commit 30a1005d14

View File

@ -57,7 +57,7 @@ var Card = (function(){
r.getPower = function(){ r.getPower = function(){
if(this._data.power === -1) return 0; if(this._data.power === -1) return 0;
if(this._forcedPower > -1){ if(this._forcedPower > -1){
return this._forcedPower + this._boost; return (this._forcedPower > this._data.power ? this._data.power : this._forcedPower) + this._boost;
} }
return this._data.power + this._boost; return this._data.power + this._boost;
} }