mirror of
https://github.com/exane/not-gwent-online
synced 2025-09-22 14:49:06 +00:00
fix forcedPower with basicPower 0
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user