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:
parent
0da37aa4b8
commit
30a1005d14
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user