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
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b3b9698831
commit
b56226076e
|
@ -101,7 +101,7 @@ void TurnHandler::ExecuteAttackChoice(ArbUt::BorrowedPtr<AttackTurnChoice> choic
|
||||||
HOOK_LOCAL(OnBeforeAttack, attack, &attack);
|
HOOK_LOCAL(OnBeforeAttack, attack, &attack);
|
||||||
|
|
||||||
for (uint8_t i = 0; i < attack.GetTargetCount(); i++) {
|
for (uint8_t i = 0; i < attack.GetTargetCount(); i++) {
|
||||||
HandleAttackForTarget(&attack, attack.GetTargets()[0]);
|
HandleAttackForTarget(&attack, attack.GetTargets()[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue