HeroRotation

HeroRotation

5M Downloads

Havoc DH Error on use of Eye Beam

Markiv3 opened this issue ยท 1 comments

commented

Message: Interface\AddOns\HeroRotation\Core.lua:48: attempt to index local 'Object' (a number value)
Time: Mon Mar 9 20:55:29 2020
Count: 130
Stack: Interface\AddOns\HeroRotation\Core.lua:48: attempt to index local 'Object' (a number value)
[string "@interface\AddOns\HeroRotation\Core.lua"]:48: in function GetTexture' [string "@Interface\AddOns\HeroRotation\Core.lua"]:88: in function Cast'
[string "@interface\AddOns\HeroRotation_DemonHunter\Havoc.lua"]:288: in function Cooldown' [string "@Interface\AddOns\HeroRotation_DemonHunter\Havoc.lua"]:472: in function ?'
[string "@interface\AddOns\HeroRotation\Main.lua"]:439: in function <Interface\AddOns\HeroRotation\Main.lua:417>

Locals: Object = 159617
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'Object' (a number value)"
Cache =

{
GUIDInfo =
{
}
Set = defined @interface\AddOns\HeroCache\Main.lua:270
WipeTableRecursively = defined @interface\AddOns\HeroCache\Main.lua:276
Get = defined @interface\AddOns\HeroCache\Main.lua:254
APLVar =
{
}
Enemies =
{
}
Reset = defined @interface\AddOns\HeroCache\Main.lua:41
HasBeenReset = true
SpellInfo =
{
}
UnitInfo =
{
}
Persistent =
{
}
MiscInfo =
{
}
ItemInfo =
{
}
EnemiesCount =
{
}
}
tostring = defined =[C]:-1

I believe changing line 288 in HeroRotation_DemonHunter\Havoc.lua to the below will fix it. It at least stopped throwing the error for me.

if HR.Cast(Item(TrinketToUse), nil, Settings.Commons.TrinketDisplayStyle) then return "Generic use_items for " .. TrinketToUse:Name(); end

commented

Make sure you've updated both HeroRotation and HeroLib. It looks like you do not have the latest HeroLib update.