Merge pull request #391 from dljgs1/v2.x

fix flyTo
This commit is contained in:
Zhang Chen 2019-08-07 12:55:00 +08:00 committed by GitHub
commit 8724154870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
var fromId = core.status.floorId;
// 检查能否飞行
if (!core.status.maps[fromId].canFlyTo || !core.status.maps[toId].canFlyTo) {
if (!core.status.maps[fromId].canFlyTo || !core.status.maps[toId].canFlyTo || !core.hasVisitedFloor(toId)) {
core.drawTip("无法飞往" + core.status.maps[toId].title + "");
return false;
}