refine many game command formats; $infhp no longer removes positive effects
This commit is contained in:
+3
-3
@@ -2066,7 +2066,7 @@ static void server_command_infinite_hp(shared_ptr<Client> c, const std::string&)
|
||||
bool enabled = c->config.check_flag(Client::Flag::INFINITE_HP_ENABLED);
|
||||
send_text_message_printf(c, "$C6Infinite HP %s", enabled ? "enabled" : "disabled");
|
||||
if (enabled && l->is_game()) {
|
||||
send_remove_conditions(c);
|
||||
send_remove_negative_conditions(c);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2077,8 +2077,8 @@ static void proxy_command_infinite_hp(shared_ptr<ProxyServer::LinkedSession> ses
|
||||
bool enabled = ses->config.check_flag(Client::Flag::INFINITE_HP_ENABLED);
|
||||
send_text_message_printf(ses->client_channel, "$C6Infinite HP %s", enabled ? "enabled" : "disabled");
|
||||
if (enabled && ses->is_in_game) {
|
||||
send_remove_conditions(ses->client_channel, ses->lobby_client_id);
|
||||
send_remove_conditions(ses->server_channel, ses->lobby_client_id);
|
||||
send_remove_negative_conditions(ses->client_channel, ses->lobby_client_id);
|
||||
send_remove_negative_conditions(ses->server_channel, ses->lobby_client_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user