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