herotc / hero-lib

WoW Addon - Core Library used by HeroRotation and AethysTools, can also be used by others 3rd-Party Addons.
European Union Public License 1.2
44 stars 35 forks source link

[Bug]: Feral Druid - Talent Astral Influence at level 1 #73

Closed Paco-4272 closed 10 months ago

Paco-4272 commented 10 months ago

What version of HeroLib are you using?

10.2.0.21

What is the issue?

Hi

I'm building a Feral Druid and just unlocked the first level of the Astral Influence Druid talent. When I approach any potential target (even training dummies), I get this lua error.

Message: Interface/AddOns/HeroLib/Class/Unit/Range.lua:82: Distance must be between 5 and 100.
Time: Thu Dec 21 13:02:53 2023
Count: 882
Stack: Interface/AddOns/HeroLib/Class/Unit/Range.lua:82: Distance must be between 5 and 100.
[string "=[C]"]: in function `assert'
[string "@Interface/AddOns/HeroLib/Class/Unit/Range.lua"]:82: in function <Interface/AddOns/HeroLib/Class/Unit/Range.lua:80>
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?
[string "@Interface/AddOns/HeroLib/Class/Unit/Player/Enemies.lua"]:40: in function <...terface/AddOns/HeroLib/Class/Unit/Player/Enemies.lua:33>
[string "@Interface/AddOns/HeroLib/Class/Unit/Player/Enemies.lua"]:116: in function `GetEnemiesInMeleeRange'
[string "@Interface/AddOns/HeroRotation_Druid/Feral.lua"]:692: in function `?'
[string "@Interface/AddOns/HeroRotation/Main.lua"]:460: in function <Interface/AddOns/HeroRotation/Main.lua:438>

Locals: (*temporary) = false
(*temporary) = "Distance must be between 5 and 100."

The counter goes up very quickly. This error does not appear by not putting any points or by putting 2 points in the talent.

HeroLib 10.2.0.21 HeroRotation 10.2.0.43 HeroDBC 10.2.0.06

Cilraaz commented 10 months ago

This should be fixed in commit https://github.com/herotc/hero-lib/commit/a7630a906a8a82bebcdb9b5d8b14e6c7f859ac55

The fix will also be included in recently released version 10.2.0.22.