| 485 | } |
| 486 | |
| 487 | bool Game_BattleAlgorithm::AlgorithmBase::RepeatNext(bool require_valid) { |
| 488 | ++cur_repeat; |
| 489 | if (cur_repeat >= repeat || (require_valid && !IsCurrentTargetValid())) { |
| 490 | cur_repeat = 0; |
| 491 | return false; |
| 492 | } |
| 493 | return true; |
| 494 | } |
| 495 | |
| 496 | bool Game_BattleAlgorithm::AlgorithmBase::IsCurrentTargetValid() const { |
| 497 | if (current_target == targets.end()) { |
no outgoing calls
no test coverage detected