diff --git a/shootyepgp.lua b/shootyepgp.lua index f535a86..33412e4 100644 --- a/shootyepgp.lua +++ b/shootyepgp.lua @@ -352,11 +352,17 @@ function sepgp:decay_epgp() -- decays entire roster's ep and gp ep = tonumber(ep) gp = tonumber(gp) if ep == nil then - else - ep = math.max(0,sepgp:num_round(ep*sepgp_decay)) - GuildRosterSetPublicNote(i,ep) - gp = math.max(shooty_basegp,sepgp:num_round(gp*sepgp_decay)) - GuildRosterSetOfficerNote(i,gp) + else + if gp == nil then + local msg = string.format("%s\'s officernote is broken:%q",name,tostring(gp)) + self:debugPrint(msg) + self:adminSay(msg) + else + ep = math.max(0,sepgp:num_round(ep*sepgp_decay)) + GuildRosterSetPublicNote(i,ep) + gp = math.max(shooty_basegp,sepgp:num_round(gp*sepgp_decay)) + GuildRosterSetOfficerNote(i,gp) + end end end local msg = string.format("All EP and GP decayed by %d%%",(1-sepgp_decay)*100) diff --git a/shootyepgp.toc b/shootyepgp.toc index 2310c0e..5019236 100644 --- a/shootyepgp.toc +++ b/shootyepgp.toc @@ -3,7 +3,7 @@ ## Notes: Effort Points/Gear Points Loot System ## Author: Roadblock ## X-Credits: shooty for original version -## Version: 2.31 +## Version: 2.32 ## OptionalDeps: Ace2 ## SavedVariables: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount ## SavedVariablesPerCharacter: sepgp_log