From 1f943eed76960a78d81d0478e4441f367611407c Mon Sep 17 00:00:00 2001 From: oc Date: Mon, 22 Apr 2019 18:36:21 +0800 Subject: [PATCH] getRealStatus Math.floor --- libs/control.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/control.js b/libs/control.js index c8d58abf..7a549e65 100644 --- a/libs/control.js +++ b/libs/control.js @@ -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)); }