Mercurial > wow > breuesk
diff State.lua @ 75:ed1c9fd4cc95
Progress on bidding events and GUI. Slave GUIs now respond properly.
author | John@Doomsday |
---|---|
date | Mon, 09 Apr 2012 09:40:53 -0400 |
parents | 7eb2963eea7d |
children | 39be9328acd0 |
line wrap: on
line diff
--- a/State.lua Mon Apr 09 09:40:14 2012 -0400 +++ b/State.lua Mon Apr 09 09:40:53 2012 -0400 @@ -129,8 +129,8 @@ local item = unpack(packet) if state == "looting" then state = "bidding" + stateitem = item AlertStateChangeListeners() - item = value end end @@ -191,13 +191,17 @@ -- Close Bidding {{{ function CloseBidding(packet) local awardedTo = unpack(packet) - state = "looting" - AlertStateChangeListeners() - -- remove the item from the window, record history + if state == "bidding" then + state = "looting" + AlertStateChangeListeners() + -- todo: remove the item from the window, record history + end end function InitiateCloseBidding(awardedTo) - Comm:SendStateChange("CB",awardedTo) + if state == "bidding" then + Comm:SendStateChange("CB",awardedTo) + end end --}}} -- Close Looting {{{