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

This commit is contained in:
Deukhoofd committed 2020-07-30 20:15:58 +02:00
1 parent b3b9698831
commit b56226076e
1 file changed
+1 -1
+1 -1
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]);
}
}