X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;ds=sidebyside;f=rogue_chat.html;h=a28951a86711b79df84b8e8102d59c78c5ed96c0;hb=77d92cc43df05bebecde95f39074024f359ad1be;hp=3b9238f098e12eb1daa4a69b1f78065dfc8a862c;hpb=9bf1355e17e7903212d439fe718ae18939466962;p=plomrogue2 diff --git a/rogue_chat.html b/rogue_chat.html index 3b9238f..a28951a 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -1688,11 +1688,11 @@ document.getElementById("teleport").onclick = function() { for (const move_button of document.querySelectorAll('[id*="_move_"]')) { let direction = move_button.id.split('_')[2].toUpperCase(); move_button.onclick = function() { - if (tui.mode.available_actions.includes("move") - || tui.mode.available_actions.includes("move_explorer")) { + if (tui.mode.available_actions.includes("move")) { server.send(['TASK:MOVE', direction]); - } else { + } else if (tui.mode.available_actions.includes("move_explorer")) { explorer.move(direction); + tui.full_refresh(); }; }; };