perf: 优化下抄作业的小逻辑

This commit is contained in:
MistEO
2023-04-17 00:02:46 +08:00
parent cf3adef12a
commit 8ae7ba62b6
4 changed files with 11 additions and 7 deletions

View File

@@ -37,11 +37,11 @@ bool asst::SSSBattleProcessTask::set_stage_name(const std::string& stage_name)
return true;
}
bool asst::SSSBattleProcessTask::do_derived_action(size_t action_index)
bool asst::SSSBattleProcessTask::do_derived_action(const battle::copilot::Action& action, size_t index)
{
LogTraceFunction;
const auto& action = get_combat_data().actions.at(action_index);
std::ignore = index;
switch (action.type) {
case battle::copilot::ActionType::DrawCard: