fix status:x

This commit is contained in:
oc 2019-03-30 17:15:12 +08:00
parent 67f98f2da6
commit f7056d699f

View File

@ -1841,7 +1841,7 @@ control.prototype.addStatus = function (name, value) {
control.prototype.getStatus = function (name) {
if (!core.status.hero) return null;
if (name == 'x' || name == 'y' || name == 'direction')
return this.getHeroLoc('x');
return this.getHeroLoc(name);
if (name == 'exp') name = 'experience';
return core.status.hero[name];
}