From c4a39aa283b8f4789d89e986c1eadfe96bd0e109 Mon Sep 17 00:00:00 2001 From: Horyoshi <42314202+Cinecom@users.noreply.github.com> Date: Sun, 29 Mar 2026 11:12:02 +0200 Subject: [PATCH] bug fix --- shootyepgp.lua | 6 ++++-- shootyepgp.toc | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/shootyepgp.lua b/shootyepgp.lua index 3c8f921..8604d52 100644 --- a/shootyepgp.lua +++ b/shootyepgp.lua @@ -1140,7 +1140,8 @@ function sepgp:addonComms(prefix,message,channel,sender) msg = string.format(L["Awarding %d GP to %s%s. (Previous: %d, New: %d)"],amount,who,"",old_gp,math.max(sepgp.VARS.basegp,new_gp or 0)) elseif admin() and what == "EP" and who and amount and amount < 0 then -- Log EP penalties for OTHER players - msg = string.format(L["%s EP Penalty to %s%s."],amount,who,"") + local old_ep = (new_ep or 0) - amount + msg = string.format("%d EP Penalty to %s. (Previous: %d, New: %d)",amount,who,old_ep,math.max(0,new_ep or 0)) elseif admin() and what == "EP" and who and amount and amount > 0 then -- Log positive EP awards for OTHER players (so DLL can track adjustments) local old_ep = (new_ep or 0) - amount @@ -1552,7 +1553,8 @@ function sepgp:givename_ep(getname,ep,silent) -- awards ep to a single character if silent then return end -- raid-wide awards handle their own logging local currentgp = self:get_gp_v3(getname) or sepgp.VARS.basegp if ep < 0 then -- inform admins and victim of penalties - local msg = string.format(L["%s EP Penalty to %s%s."],ep,getname,postfix) + local oldep = newep - ep + local msg = string.format("%d EP Penalty to %s%s. (Previous: %d, New: %d)",ep,getname,postfix,oldep,math.max(0,newep)) self:adminSay(msg) self:addToLog(msg) local addonMsg = string.format("%s;%s;%s;%s;%s",getname,"EP",ep,math.max(0,newep),currentgp) diff --git a/shootyepgp.toc b/shootyepgp.toc index 5528838..24c42c2 100644 --- a/shootyepgp.toc +++ b/shootyepgp.toc @@ -7,7 +7,7 @@ ## X-Website: https://github.com/cinecom/shootyepgp/ ## X-Category: Guild ## X-Credits: shooty, Qcat(zhCN) -## Version: 10.19.8 +## Version: 10.19.9 ## X-Alpha: ## OptionalDeps: Ace2 ## SavedVariables: sepgp_saychannel, sepgp_groupbyclass, sepgp_groupbyarmor, sepgp_groupbyrole, sepgp_raidonly, sepgp_dbver, sepgp_debug, sepgp_fubar, sepgp_sound, RaidStrikeDB, RaidStrikeResetTime, BenchTrackerDB