Quantcast

Ammo thrown debug

urnati [08-09-19 - 05:58]
Ammo thrown debug
Filename
TitanClassicAmmo/TitanClassicAmmo.lua
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