[Fix] Refactor project
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user