Fixed issue where multiple targets would cause the same target to be hit over and over again.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-07-30 20:15:58 +02:00
parent b3b9698831
commit b56226076e
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ void TurnHandler::ExecuteAttackChoice(ArbUt::BorrowedPtr<AttackTurnChoice> choic
HOOK_LOCAL(OnBeforeAttack, attack, &attack);
for (uint8_t i = 0; i < attack.GetTargetCount(); i++) {
HandleAttackForTarget(&attack, attack.GetTargets()[0]);
HandleAttackForTarget(&attack, attack.GetTargets()[i]);
}
}