| 339 | } |
| 340 | |
| 341 | int Game_BattleAlgorithm::AlgorithmBase::ApplyAttributeShiftEffect(AttributeEffect ae) { |
| 342 | auto* target = GetTarget(); |
| 343 | if (target) { |
| 344 | return target->ShiftAttributeRate(ae.attr_id, ae.shift); |
| 345 | } |
| 346 | return 0; |
| 347 | } |
| 348 | |
| 349 | void Game_BattleAlgorithm::AlgorithmBase::ApplyAttributeShiftEffects() { |
| 350 | for (auto& ae: attributes) { |
no test coverage detected