handle Ep1&2 NTE protected commands properly

This commit is contained in:
Martin Michelsen
2025-10-11 17:37:09 -07:00
parent 3c32a66064
commit c2008f1f9c
6 changed files with 76 additions and 59 deletions
+1 -1
View File
@@ -2017,7 +2017,7 @@ asio::awaitable<HandlerResult> C_6x(shared_ptr<Client> c, Channel::Message& msg)
case 0x4B:
case 0x4C:
if (c->check_flag(Client::Flag::INFINITE_HP_ENABLED)) {
send_change_player_hp(c->channel, c->lobby_client_id, PlayerHPChange::MAXIMIZE_HP, 0);
co_await send_change_player_hp(c, c->lobby_client_id, PlayerHPChange::MAXIMIZE_HP, 0);
send_change_player_hp(c->proxy_session->server_channel, c->lobby_client_id, PlayerHPChange::MAXIMIZE_HP, 0);
}
break;