Hekili Priority Helper

Hekili Priority Helper

44M Downloads

[BUG] *health_pct* does not return any value

johnnylam88 opened this issue ยท 3 comments

commented

Before You Begin

  • I confirm that I have downloaded the latest version of the addon.
  • I am not playing on a private server.
  • I checked for an existing, open ticket for this issue and was not able to find one.
  • I edited the title of this bug report (above) so that it describes the issue I am reporting.

Describe the Issue

health_pct does not seem to return a valid value when used in an action list.

How to Reproduce

  1. Use the following action list for Blood Death Knight:
actions=death_strike,if=health_pct<70
  1. See the following warning:
Returned unknown string 'health_pct' in state metatable [Blood (Test):default:1].

[string "@Interface/AddOns/Hekili/State.lua"]:2358: in function <Interface/AddOns/Hekili/State.lua:1988>
    [string "return health_pct"]:1: in main chunk
    [string "=[C]"]: in function `pcall'
[string "@Interface/AddOns/Hekili/Scripts.lua"]:1111: in function `StoreValues'
        [string "@Interface/AddOns/Hekili/Options.lua"]:7232: in function `member'
[string "@Interface/AddOns/Hekili/MultilineEditor.lua"]:203: in function <Interface/AddOns/Hekili/MultilineEditor.lua:152>
[string "@Interface/AddOns/Hekili/MultilineEditor.lua"]:238: in function <Interface/AddOns/Hekili/MultilineEditor.lua:229>
[string "@Interface/AddOns/Hekili/MultilineEditor.lua"]:311: in function <Interface/AddOns/Hekili/MultilineEditor.lua:307>

Player Information (Link)

https://pastebin.com/23nEEMfy

Error Messages (Link)

no error messages in-game

Additional Information

No response

Contact Information

No response

commented

I've tried using both health_pct and player.health_pct and both return nil.

commented

Using health does work, and it is converted to health.current. Using maximum_health does not work and also returns nil.

commented

Checking the SimC page, it seems that health_pct is not a valid expression, so please ignore this issue.