handle marker as feature
Sonarqube Scanner / Build and analyze (push) Successful in 50s

This commit is contained in:
ChatGPT
2026-06-05 00:37:37 +02:00
parent eb43af49b2
commit 95e8b7b994
6 changed files with 171 additions and 128 deletions
-2
View File
@@ -3,10 +3,8 @@ export async function checkDamageCondition(config, context) {
const absoluteAmount = Math.abs(amount);
if (absoluteAmount < (Number(config.minAmount) || 0)) return false;
if (config.amountMode === "damageOnly" && amount <= 0) return false;
if (config.amountMode === "healingOnly" && amount >= 0) return false;
if (config.amountMode === "healingOnly") return true;
const configuredTypes = config.types ?? [];