浏览地图时可楼传

This commit is contained in:
ckcz123 2021-08-07 12:25:51 +08:00
parent 85638ee875
commit 7cc461f452

View File

@ -2710,11 +2710,14 @@ events.prototype.useFly = function (fromUserAction) {
// 从“浏览地图”页面:尝试直接传送到该层
if (core.status.event.id == 'viewMaps') {
if (!core.hasItem('fly')) {
core.playSound('操作失败');
core.drawTip('你没有' + core.material.items['fly'].name, 'fly');
} else if (!core.canUseItem('fly')) {
core.playSound('操作失败');
core.drawTip('无法传送到当前层', 'fly');
} else {
core.flyTo(core.status.event.data.floorId);
}
core.flyTo(core.status.event.data.floorId);
return;
}