From b290efc2a2d1c7eeae3182fba40a515661f4b8de Mon Sep 17 00:00:00 2001
From: cadowtin <chasdowtin@gmail.com>
Date: Wed, 19 Jun 2024 03:12:12 -0500
Subject: [PATCH] Fix Aid issue by swapping order

---
 scripts/addons/aid.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/addons/aid.js b/scripts/addons/aid.js
index ec241ec..f7544a8 100644
--- a/scripts/addons/aid.js
+++ b/scripts/addons/aid.js
@@ -59,7 +59,7 @@ export async function aid() {
   }
 
   async function handleResult(rollValue, dcVal, tok, targ) {
-    const diff = dcVal - rollValue;
+    const diff = rollValue - dcVal;
     const data = {};
     if (diff >= 10) {
       //Crit Success