Mercurial > wow > kbf
diff KBF.lua @ 26:547b70e235fe
cleanup
author | Chris Mellon <arkanes@gmail.com> |
---|---|
date | Tue, 16 Nov 2010 07:09:20 -0600 |
parents | 69f46450ef82 |
children | 9967caf18b2a |
line wrap: on
line diff
--- a/KBF.lua Tue Oct 26 08:18:02 2010 -0500 +++ b/KBF.lua Tue Nov 16 07:09:20 2010 -0600 @@ -183,9 +183,8 @@ local RETURNS_PER_ITEM = 3 local hasEnchant, remaining, enchantCharges = select(RETURNS_PER_ITEM * (itemIndex - 1) + 1, GetWeaponEnchantInfo()) -- remaining time is in milliseconds - if not hasEnchant then return end + if not hasEnchant then return end -- this should never happen local remaining = remaining / 1000 - if not hasEnchant then return end -- this should never happen local icon = GetInventoryItemTexture("player", slot) -- this is terrible, but I hate myself and everyone else. -- We're going to assume that the duration of the temp enchant @@ -255,7 +254,7 @@ function KBF:OnEnter(button, motion) -- this is for the secure buttons, so use the attributes - local unit = SecureButton_GetModifiedUnit(button) or button.unit-- will perform vehicle toggle + local unit = SecureButton_GetModifiedUnit(button) or button.unit -- will perform vehicle toggle local filter = button:GetAttribute("filter") or button.filter local index = button:GetAttribute("index") or button.index if unit and filter and index then