[Fix] Refactor project

This commit is contained in:
2026-03-02 12:49:12 +07:00
parent f65976796d
commit f52131f755
44 changed files with 449 additions and 404 deletions
@@ -18,10 +18,10 @@ namespace YachtDice.Modifiers.Conditions
{
if (context.DiceValues == null) return false;
int count = 0;
for (int i = 0; i < context.DiceValues.Length; i++)
var count = 0;
foreach (var t in context.DiceValues)
{
if (targetValue == 0 || context.DiceValues[i] == targetValue)
if (targetValue == 0 || t == targetValue)
count++;
}
return count >= minCount;