mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fix: rotate_check 位置错误
This commit is contained in:
@@ -47,8 +47,6 @@ void asst::RoguelikeControlTaskPlugin::exit_then_stop(bool abandon) const
|
||||
|
||||
bool asst::RoguelikeControlTaskPlugin::_run()
|
||||
{
|
||||
Log.rotate_check();
|
||||
|
||||
if (m_need_exit_then_stop) {
|
||||
exit_then_stop();
|
||||
m_need_exit_then_stop = false;
|
||||
|
||||
@@ -28,6 +28,7 @@ bool asst::RoguelikeResetTaskPlugin::verify(AsstMsg msg, const json::value& deta
|
||||
|
||||
bool asst::RoguelikeResetTaskPlugin::_run()
|
||||
{
|
||||
Log.rotate_check();
|
||||
for (const auto& plugin : m_task_ptr->get_plugins()) {
|
||||
if (auto ptr = std::dynamic_pointer_cast<AbstractRoguelikeTaskPlugin>(plugin)) {
|
||||
ptr->reset_in_run_variables();
|
||||
|
||||
Reference in New Issue
Block a user