Kreolix / CovenantMissionHelper

10 stars 8 forks source link

Catch the Anima Smugglers #45

Open MrRawrrino89 opened 3 years ago

MrRawrrino89 commented 3 years ago

Message: Interface\AddOns\CovenantMissionHelper\Unit.lua:50: attempt to index field '?' (a nil value) Time: Sat Jul 3 14:13:37 2021 Count: 3 Stack: Interface\AddOns\CovenantMissionHelper\Unit.lua:50: attempt to index field '?' (a nil value) [string "@Interface\AddOns\CovenantMissionHelper\Unit.lua"]:50: in function getAttackType' [string "@Interface\AddOns\CovenantMissionHelper\Unit.lua"]:61: in functionsetSpells' [string "@Interface\AddOns\CovenantMissionHelper\Unit.lua"]:43: in function new' [string "@Interface\AddOns\CovenantMissionHelper\Board.lua"]:69: in functionnew' [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:51: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:49> [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:60: in function simulateFight' [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:43: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:35> [string "=[C]"]: in functionUpdateAllyPower' [string "@Interface\AddOns\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:341: in function ShowMission' [string "@Interface\AddOns\VenturePlan\Util.lua"]:206: in functionShowMission' [string "@Interface\AddOns\VenturePlan\Widgets.lua"]:242: in function <Interface\AddOns\VenturePlan\Widgets.lua:241>

Locals: self =

{ role = 1 ID = 3522524 reflect = 0 startHealth = 560 spells =
{ } untargetable = false currentHealth = 560 name = "Anima Smuggler" boardIndex = 6 buffs =
{ } maxHealth = 560 attack = 44 } autoCombatSpells =
{ } (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = "attempt to index field '?' (a nil value)" CMH =
{ Spell =
{ } Board =
{ } isDebug = false Unit =
{ } log = defined @Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua:192 TargetManager =
{ } MetaBoard =
{ } Buff =
{ } debug_log = defined @Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua:199 DataTables =
{ } }

czarl21 commented 3 years ago

I just want to report I get a similar error, on multiple toons...most of my addons are disabled until they get updated.

thanks for the great work

czarl21 commented 3 years ago

here is my error message

Message: Interface\AddOns\CovenantMissionHelper\Unit.lua:50: attempt to index field '?' (a nil value) Time: Tue Jul 6 07:14:53 2021 Count: 1 Stack: Interface\AddOns\CovenantMissionHelper\Unit.lua:50: attempt to index field '?' (a nil value)

[string "@Interface\AddOns\CovenantMissionHelper\Unit.lua"]:50: in function getAttackType' [string "@Interface\AddOns\CovenantMissionHelper\Unit.lua"]:61: in functionsetSpells' [string "@Interface\AddOns\CovenantMissionHelper\Unit.lua"]:43: in function new' [string "@Interface\AddOns\CovenantMissionHelper\Board.lua"]:69: in functionnew' [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:51: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:49> [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:60: in function `simulateFight' [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:43: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:35>

string "=[C]": in function UpdateAllyPower' [string "@Interface\AddOns\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:341: in function <...s\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua:292> [string "=[C]"]: in functionShowMission' [string "@Interface\AddOns\VenturePlan\Util.lua"]:206: in function `ShowMission' [string "@Interface\AddOns\VenturePlan\Widgets.lua"]:242: in function <Interface\AddOns\VenturePlan\Widgets.lua:241>

Locals:

czarl21 commented 3 years ago

and page 2

Message: Interface\AddOns\CovenantMissionHelper\Unit.lua:50: attempt to index field '?' (a nil value) Time: Tue Jul 6 07:14:55 2021 Count: 1 Stack: Interface\AddOns\CovenantMissionHelper\Unit.lua:50: attempt to index field '?' (a nil value)

[string "@Interface\AddOns\CovenantMissionHelper\Unit.lua"]:50: in function getAttackType' [string "@Interface\AddOns\CovenantMissionHelper\Unit.lua"]:61: in functionsetSpells' [string "@Interface\AddOns\CovenantMissionHelper\Unit.lua"]:43: in function new' [string "@Interface\AddOns\CovenantMissionHelper\Board.lua"]:69: in functionnew' [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:51: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:49> [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:60: in function `simulateFight' [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:43: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:35>

string "=[C]": in function UpdateAllyPower' [string "@Interface\AddOns\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:677: in function <...s\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua:638> [string "=[C]"]: in functionAssignFollowerToMission' [string "@Interface\AddOns\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:995: in function `AddFollower' [string "@Interface\AddOns\VenturePlan\Widgets.lua"]:502: in function <Interface\AddOns\VenturePlan\Widgets.lua:486>

Locals:

ergh99 commented 3 years ago

replace Unit.lua line 43 with:

    if blizzardUnitInfo.autoCombatSpells and next(blizzardUnitInfo.autoCombatSpells) ~= nil then
        newObj:setSpells(blizzardUnitInfo.autoCombatSpells)
    end