# HG changeset patch # User Chris Mellon # Date 1289912960 21600 # Node ID 547b70e235fe79d56f48592474684a03f08189af # Parent 69f46450ef8262795eee7d3c0815d6f40fdd0af1 cleanup diff -r 69f46450ef82 -r 547b70e235fe KBF.lua --- 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