From 88a106d66f3667818418dac92ce00ac67e217f2c Mon Sep 17 00:00:00 2001 From: urnati Date: Fri, 9 Aug 2019 01:58:48 -0400 Subject: [PATCH] Ammo thrown debug --- TitanClassicAmmo/TitanClassicAmmo.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/TitanClassicAmmo/TitanClassicAmmo.lua b/TitanClassicAmmo/TitanClassicAmmo.lua index 5365460..5a531e0 100644 --- a/TitanClassicAmmo/TitanClassicAmmo.lua +++ b/TitanClassicAmmo/TitanClassicAmmo.lua @@ -77,14 +77,16 @@ TitanDebug("MERCHANT_CLOSED / PLAYER_ENTERING_WORLD") end end) +--[[ TitanPanelAmmoButton:RegisterEvent("PLAYER_LOGIN") TitanPanelAmmoButton:RegisterEvent("UNIT_INVENTORY_CHANGED") TitanPanelAmmoButton:RegisterEvent("UPDATE_INVENTORY_DURABILITY") TitanPanelAmmoButton:RegisterEvent("MERCHANT_CLOSED") TitanPanelAmmoButton:RegisterEvent("PLAYER_ENTERING_WORLD") TitanPanelAmmoButton:RegisterEvent("ACTIONBAR_HIDEGRID") +--]] end - +--[[ function TitanClassicAmmo_OnEvent(self, event, ...) if (event == "PLAYER_LOGIN") then TitanPanelAmmoButton_PLAYER_LOGIN() @@ -107,7 +109,7 @@ function TitanClassicAmmo_OnEvent(self, event, ...) return; end end - +--]] function TitanPanelAmmoButton_PLAYER_LOGIN() -- Class check if class ~= "ROGUE" and class ~= "WARRIOR" and class ~= "HUNTER" then @@ -157,7 +159,7 @@ TitanDebug("TitanPanelAmmoButton_UNIT_INVENTORY_CHANGED") end function TitanPanelAmmoButton_UPDATE_INVENTORY_DURABILITY() --- count = GetInventoryItemDurability(rangedSlotID) or count + count = GetInventoryItemDurability(rangedSlotID) or count TitanPanelButton_UpdateButton(TITAN_AMMO_ID); end -- 1.7.9.5