Allow savechar in proxy sessions
This commit is contained in:
+5
-3
@@ -439,12 +439,14 @@ ChatCommandDefinition cc_bank(
|
|||||||
});
|
});
|
||||||
|
|
||||||
static asio::awaitable<void> server_command_bbchar_savechar(const Args& a, bool is_bb_conversion) {
|
static asio::awaitable<void> server_command_bbchar_savechar(const Args& a, bool is_bb_conversion) {
|
||||||
// TODO: We could support this in proxy sessions; we'd just have to handle the 61/30 correctly
|
// Allow $savechar in proxy sessions for character migration/testing.
|
||||||
a.check_is_proxy(false);
|
// Keep $bbchar blocked in proxy sessions because it writes to BB account slots.
|
||||||
|
if (is_bb_conversion) {
|
||||||
|
a.check_is_proxy(false);
|
||||||
|
}
|
||||||
a.check_is_game(false);
|
a.check_is_game(false);
|
||||||
|
|
||||||
auto s = a.c->require_server_state();
|
auto s = a.c->require_server_state();
|
||||||
auto l = a.c->require_lobby();
|
|
||||||
|
|
||||||
if (is_bb_conversion && is_ep3(a.c->version())) {
|
if (is_bb_conversion && is_ep3(a.c->version())) {
|
||||||
throw precondition_failed("$C6Episode 3 players\ncannot be converted\nto BB format");
|
throw precondition_failed("$C6Episode 3 players\ncannot be converted\nto BB format");
|
||||||
|
|||||||
Reference in New Issue
Block a user