getRealStatus Math.floor

This commit is contained in:
oc 2019-04-22 18:36:21 +08:00
parent 6483c5e9da
commit 1f943eed76

View File

@ -1856,7 +1856,7 @@ control.prototype.getStatus = function (name) {
////// 从status中获得属性如果不存在则从勇士属性中获取 //////
control.prototype.getStatusOrDefault = function (status, name) {
if (status && name in status)
return status[name];
return Math.floor(status[name]);
return Math.floor(this.getStatus(name));
}