Fix Replay Bug

This commit is contained in:
oc 2018-11-25 00:12:32 +08:00
parent 7db822e04a
commit cd530d62b4
2 changed files with 4 additions and 2 deletions

View File

@ -462,7 +462,7 @@ control.prototype.setAutomaticRoute = function (destX, destY, stepPostfix) {
if (core.timeout.turnHeroTimeout!=null) return; if (core.timeout.turnHeroTimeout!=null) return;
// 单击瞬间移动 // 单击瞬间移动
if (core.status.heroStop) { if (core.status.heroStop && core.status.heroMoving==0) {
if (stepPostfix.length<=1 && core.getFlag('clickMove', true) && core.control.tryMoveDirectly(destX, destY)) if (stepPostfix.length<=1 && core.getFlag('clickMove', true) && core.control.tryMoveDirectly(destX, destY))
return; return;
} }

View File

@ -89,7 +89,9 @@ maps.prototype.addInfo = function (block) {
block.event.trigger = 'getItem'; block.event.trigger = 'getItem';
} }
if (!core.isset(block.event.noPass)) { if (!core.isset(block.event.noPass)) {
block.event.noPass = true; if (block.event.cls != 'items') {
block.event.noPass = true;
}
} }
if (!core.isset(block.event.animate)) { if (!core.isset(block.event.animate)) {
if (block.event.cls=='enemys' || block.event.cls=='npcs') { if (block.event.cls=='enemys' || block.event.cls=='npcs') {