From dd607b8c48384926b996ef86c33bf194af735558 Mon Sep 17 00:00:00 2001 From: Ampitere Date: Mon, 13 May 2024 10:03:35 -0700 Subject: [PATCH] fix: Despoil incorrect message on fail --- scripts/globals/job_utils/thief.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/globals/job_utils/thief.lua b/scripts/globals/job_utils/thief.lua index 28be700839d..ad038144326 100644 --- a/scripts/globals/job_utils/thief.lua +++ b/scripts/globals/job_utils/thief.lua @@ -218,7 +218,7 @@ xi.job_utils.thief.useDespoil = function(player, target, ability, action) if target:isMob() and math.random(1, 100) <= despoilChance and - stolen + stolen ~= 0 then if player:getObjType() == xi.objType.TRUST then player:getMaster():addItem(stolen)