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