[Fix] Refactor project
This commit is contained in:
@@ -19,10 +19,10 @@ namespace YachtDice.Modifiers.Effects
|
||||
{
|
||||
if (context.DiceValues == null) return UniTask.CompletedTask;
|
||||
|
||||
int count = 0;
|
||||
for (int i = 0; i < context.DiceValues.Length; i++)
|
||||
var count = 0;
|
||||
foreach (var t in context.DiceValues)
|
||||
{
|
||||
if (targetDiceValue == 0 || context.DiceValues[i] == targetDiceValue)
|
||||
if (targetDiceValue == 0 || t == targetDiceValue)
|
||||
count++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user