"Dual Spec" event error WOTLK ver
Xdembe opened this issue ยท 1 comments
Lua Error
1x [string "local set1 = "Tank"..."]:9: attempt to call global 'GetActiveSpecGroup' (a nil value)
[string "local set1 = "Tank"
local set2 = "Fury"
if ItemRack.HasTitansGrip and GetInventoryItemLink("player",17) then
local b,s = ItemRack.FindSpace()
if b then
ItemRack.MoveItem(17,nil,b,s)
end
end
local at = GetActiveSpecGroup()
if at == 1 then
ItemRack.EquipSet(set1)
elseif at == 2 then
ItemRack.EquipSet(set2)
end
--[[This event will equip "Name of Set1" when you switch to primary talents and "Name of Set2" when switching to secondary talents. Edit the names for your own use.]]"]:9: in main chunk
[string "=[C]"]: in function RunScript' [string "@ItemRackOptions/ItemRackOptions.lua"]:336: in function
ButtonOnClick'
[string "*ItemRackOptions.xml:842_OnClick"]:1: in function <[string "*ItemRackOptions.xml:842_OnClick"]:1>
Locals:
set1 = "Tank"
set2 = "Fury"
(*temporary) = nil
(*temporary) = "attempt to call global 'GetActiveSpecGroup' (a nil value)"
Comment
GetActiveTalentGroup may fix it.
Auto-switch does not working (on pause) when player deactivate titan's grip talent( both 2hand weapons became red because switching back to previous talent spec ) until manualy moving any item(wearing or moving in bags).
How to reproduce
- Switch talent spec (with Titan's Grip)
- ItemRack will switch to "Fury" set (with both 2hands weapon)
- Switch talent spec back (without Titan's Grip)
- ItemRack will stuck(or pause) on switching set
- Pick any item in your inventory
- Put it back
- ItemRack is switching like it should