Merge pull request #145 from ckcz123/v2.0

Fix replay bug
This commit is contained in:
Zhang Chen 2018-06-17 00:22:16 +08:00 committed by GitHub
commit 717237bd6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1671,7 +1671,7 @@ control.prototype.replay = function () {
var tools = Object.keys(core.status.hero.items.tools).sort();
var constants = Object.keys(core.status.hero.items.constants).sort();
var index;
if ((index=tools.indexOf(itemId))>=0 || (index=constants.indexOf(itemId)+100)>=100) {
if ((index=tools.indexOf(itemId))>=0 || (index=constants.indexOf(itemId)+1000)>=1000) {
core.ui.drawToolbox(index);
setTimeout(function () {
core.ui.closePanel();