[Fix] Limited Use Modifier

This commit is contained in:
2026-03-05 09:52:26 +07:00
parent 72bbdc76af
commit 05c2619de4
7 changed files with 190 additions and 18 deletions
+3 -2
View File
@@ -76,8 +76,9 @@ namespace YachtDice.Scoring
baseScore, dice, category,
currentRoll, currentTurn, playerCurrency,
_modifierRegistry.Active);
context.IsPreview = true;
_eventBus.Fire(TriggerType.OnCategoryScored, context).Forget();
_eventBus.Fire(TriggerType.OnCategoryScored, context).GetAwaiter().GetResult();
return context.ToScoreResult();
}
@@ -143,7 +144,7 @@ namespace YachtDice.Scoring
0, 0, 0,
_modifierRegistry.Active);
_eventBus.Fire(TriggerType.OnCategoryScored, context).Forget();
_eventBus.Fire(TriggerType.OnCategoryScored, context).GetAwaiter().GetResult();
}
ScoreResult result;