mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 17:57:01 +08:00
fix: 修复肉鸽及自动战斗数据不清空导致的一些乱七八糟的问题
This commit is contained in:
@@ -30,6 +30,7 @@ asst::BattleProcessTask::BattleProcessTask(const AsstCallback& callback, Assista
|
||||
bool asst::BattleProcessTask::_run()
|
||||
{
|
||||
LogTraceFunction;
|
||||
clear();
|
||||
|
||||
if (!calc_tiles_info(m_stage_name)) {
|
||||
Log.error("get stage info failed");
|
||||
@@ -47,6 +48,15 @@ bool asst::BattleProcessTask::_run()
|
||||
return true;
|
||||
}
|
||||
|
||||
void asst::BattleProcessTask::clear()
|
||||
{
|
||||
BattleHelper::clear();
|
||||
|
||||
m_combat_data = decltype(m_combat_data)();
|
||||
m_oper_in_group.clear();
|
||||
m_in_bullet_time = false;
|
||||
}
|
||||
|
||||
bool asst::BattleProcessTask::set_stage_name(const std::string& stage_name)
|
||||
{
|
||||
LogTraceFunction;
|
||||
|
||||
Reference in New Issue
Block a user