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

This commit is contained in:
2020-07-30 20:15:58 +02:00
parent b3b9698831
commit b56226076e

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]);
}
}