Skip to content

Commit

Permalink
Fix dislodged units having too much prevent strength
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliveriver committed Oct 22, 2024
1 parent fcf765b commit 05ac113
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ private void CalculateMovePreventStrength(Move move)
}

AddSupportStrength(move.PreventStrength, move.Supports);

if (move.OpposingMove?.Status == OrderStatus.New)
{
move.PreventStrength.Min = 0;
}
}

private void AddSupportStrength(OrderStrength strength, List<Support> supports)
Expand Down

0 comments on commit 05ac113

Please sign in to comment.