| 279 | } |
| 280 | |
| 281 | int Game_BattleAlgorithm::AlgorithmBase::ApplyAgiEffect() { |
| 282 | auto* target = GetTarget(); |
| 283 | assert(target); |
| 284 | auto agi = GetAffectedAgi(); |
| 285 | if (agi) { |
| 286 | agi = target->ChangeAgiModifier(agi); |
| 287 | if (IsAbsorbAgi()) { |
| 288 | source->ChangeAgiModifier(-agi); |
| 289 | } |
| 290 | |
| 291 | Game_Battle::ManiacBattleHook( |
| 292 | Game_Interpreter_Battle::ManiacBattleHookType::StatChange, |
| 293 | target->GetType() == Game_Battler::Type_Enemy, |
| 294 | target->GetPartyIndex(), |
| 295 | target->GetDisplayX(), |
| 296 | target->GetDisplayY(), |
| 297 | 7, |
| 298 | agi |
| 299 | ); |
| 300 | } |
| 301 | return agi; |
| 302 | } |
| 303 | |
| 304 | bool Game_BattleAlgorithm::AlgorithmBase::ApplyStateEffect(StateEffect se) { |
| 305 | auto* target = GetTarget(); |
no test coverage detected