mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
fix: 基建换班宿舍任务期间重进宿舍后,重置过滤状态记录
This commit is contained in:
@@ -23,6 +23,12 @@ asst::InfrastDormTask& asst::InfrastDormTask::set_trust_enabled(bool dorm_trust_
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool asst::InfrastDormTask::on_run_fails()
|
||||
{
|
||||
m_if_filter_notstationed_haspressed = false;
|
||||
return asst::InfrastAbstractTask::on_run_fails();
|
||||
}
|
||||
|
||||
bool asst::InfrastDormTask::_run()
|
||||
{
|
||||
for (; m_cur_facility_index < m_max_num_of_dorm; ++m_cur_facility_index) {
|
||||
|
||||
@@ -14,6 +14,9 @@ public:
|
||||
InfrastDormTask& set_notstationed_enabled(bool dorm_notstationed_enabled) noexcept;
|
||||
InfrastDormTask& set_trust_enabled(bool m_dorm_trust_enabled) noexcept;
|
||||
|
||||
protected:
|
||||
virtual bool on_run_fails() override;
|
||||
|
||||
private:
|
||||
virtual bool _run() override;
|
||||
// virtual bool click_confirm_button() override;
|
||||
|
||||
Reference in New Issue
Block a user