Mercurial > wow > reaction
diff StanceButton.lua @ 249:46b59a9ded76
Fix some errors related to re-using action IDs
author | Flick |
---|---|
date | Mon, 28 Mar 2011 14:52:35 -0700 |
parents | 9e708a155ab9 |
children | c918ff9ac787 |
line wrap: on
line diff
--- a/StanceButton.lua Mon Mar 28 10:43:36 2011 -0700 +++ b/StanceButton.lua Mon Mar 28 14:52:35 2011 -0700 @@ -61,9 +61,8 @@ local barFrame = bar:GetFrame() local config = self:GetConfig() - -- set up the base stance ID - self:SetActionIDPool("stance",8) - config.stanceID = self:AcquireActionID(config.stanceID, idHint, true) + -- set up the stance ID + config.stanceID = config.stanceID or idx -- attribute setup f:SetAttribute("type","spell") @@ -101,6 +100,14 @@ return self.config.stanceID end +function Stance:AcquireActionID() + -- don't use pool +end + +function Stance:ReleaseActionID() + -- don't use pool +end + function Stance:UpdateAction() if InCombatLockdown() then self.updatePending = true