diff --git a/bids.lua b/bids.lua index 63b5ff8..b91ef08 100644 --- a/bids.lua +++ b/bids.lua @@ -94,14 +94,25 @@ function sepgp_bids:Toggle(forceShow) end function sepgp_bids:announceWinnerMS(name, pr) - sepgp:widestAudience(string.format(L["Winning Mainspec Bid: %s (%.03f PR)"],name,pr)) + if not IsRaidLeader() then + -- Non–raid leaders cannot announce winners. + return + end + sepgp:widestAudience(string.format(L["Winning Mainspec Bid: %s (%.03f PR)"], name, pr)) end function sepgp_bids:announceWinnerOS(name, pr) - sepgp:widestAudience(string.format(L["Winning Offspec Bid: %s (%.03f PR)"],name,pr)) + if not IsRaidLeader() then + return + end + sepgp:widestAudience(string.format(L["Winning Offspec Bid: %s (%.03f PR)"], name, pr)) end function sepgp_bids:countdownCounter() + if not IsRaidLeader() then + -- Non–raid leaders cannot announce winners. + return + end self._counter = (self._counter or 6) - 1 if GetNumRaidMembers()>0 and self._counter > 0 then self._counterText = C:Yellow(tostring(self._counter)) @@ -124,6 +135,10 @@ function sepgp_bids:countdownFinish(reset) end function sepgp_bids:bidCountdown() + if not IsRaidLeader() then + -- Non–raid leaders cannot announce winners. + return + end self:countdownFinish(true) self:ScheduleRepeatingEvent("shootyepgpBidCountdown",self.countdownCounter,1,self) self:ScheduleEvent("shootyepgpBidCountdownFinish",self.countdownFinish,6,self) @@ -303,4 +318,4 @@ function sepgp_bids:OnTooltipUpdate() end -- GLOBALS: sepgp_saychannel,sepgp_groupbyclass,sepgp_groupbyarmor,sepgp_groupbyrole,sepgp_raidonly,sepgp_decay,sepgp_minep,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount,sepgp_log,sepgp_dbver,sepgp_looted --- GLOBALS: sepgp,sepgp_prices,sepgp_standings,sepgp_bids,sepgp_loot,sepgp_reserves,sepgp_alts,sepgp_logs \ No newline at end of file +-- GLOBALS: sepgp,sepgp_prices,sepgp_standings,sepgp_bids,sepgp_loot,sepgp_reserves,sepgp_alts,sepgp_logs