comparison Gear.lua @ 87:fe0bc2f32851 v41

changed event for talent switch
author yellowfive
date Fri, 02 Sep 2016 16:21:56 -0700
parents af2474d28bb4
children 6bbe64d587b4
comparison
equal deleted inserted replaced
86:12d0f853eca8 87:fe0bc2f32851
754 print(strsub(message, 13)) 754 print(strsub(message, 13))
755 end 755 end
756 ]] 756 ]]
757 757
758 function Amr:InitializeGear() 758 function Amr:InitializeGear()
759 Amr:AddEventHandler("PLAYER_SPECIALIZATION_CHANGED", onActiveTalentGroupChanged) 759 Amr:AddEventHandler("ACTIVE_TALENT_GROUP_CHANGED", onActiveTalentGroupChanged)
760 760
761 --Amr:AddEventHandler("CHAT_MSG_CHANNEL", testfunc) 761 --Amr:AddEventHandler("CHAT_MSG_CHANNEL", testfunc)
762 762
763 Amr:AddEventHandler("UNIT_INVENTORY_CHANGED", function(unitID) 763 Amr:AddEventHandler("UNIT_INVENTORY_CHANGED", function(unitID)
764 if unitID and unitID ~= "player" then return end 764 if unitID and unitID ~= "player" then return end