Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item Cooldown Progress - Item In Range combat bug with friendly target #5457

Closed
1 task done
mrbuds opened this issue Oct 2, 2024 · 0 comments
Closed
1 task done
Labels
⏱ Awaiting Response This ticket hasn't been triaged yet. 🐛 Bug This is a problem with WeakAuras.

Comments

@mrbuds
Copy link
Contributor

mrbuds commented Oct 2, 2024

Is there an existing issue for this?

  • I have searched the existing open and closed issues.

Description

Error in combat with item cooldown's item in range condition, it should work on friendly target while in combat

        conditionTest = function(state, needle)
          return state and state.show and (UnitExists('target') and C_Item.IsItemInRange(state.itemname, 'target')) == (needle == 1)
        end,

WeakAuras Version

dev

World of Warcraft Flavor

Retail (Default)

World of Warcraft Region

EU

Tested with only WeakAuras

I got this issue with only WeakAuras enabled

Lua Error

1x [ADDON_ACTION_BLOCKED] AddOn 'WeakAuras' tried to call the protected function 'UNKNOWN()'.
[string "@!BugGrabber/BugGrabber.lua"]:485: in function <!BugGrabber/BugGrabber.lua:485>
[string "=[C]"]: ?
[string "=[C]"]: in function `IsItemInRange'
[string "@WeakAuras/Prototypes.lua"]:5984: in function <WeakAuras/Prototypes.lua:5983>
[string "=[C]"]: in function `xpcall'
[string "@WeakAuras/Conditions.lua"]:216: in function `CallCustomConditionTest'
[string "local newActiveConditions = {};"]:14: in function `?'
[string "@WeakAuras/Conditions.lua"]:875: in function <WeakAuras/Conditions.lua:866>
[string "@WeakAuras/Conditions.lua"]:895: in function <WeakAuras/Conditions.lua:891>
[string "=[C]"]: in function `CameraOrSelectOrMoveStop'
[string "CAMERAORSELECTORMOVE"]:4: in function <[string "CAMERAORSELECTORMOVE"]:1>

Locals:
_ = Frame {
}
event = "ADDON_ACTION_BLOCKED"
events = <table> {
}

Reproduction Steps

Make new icon with Item Cooldown Progress triggger
Set an item with a range, i used a trinket that give a shield on my target
Set a condition to change color in red when Item In Range is false

Hit a target dummy to enter combat, select a friendly target => error

Last Good Version

No response

Screenshots

No response

Export String

!WA:2!Dr1pVTTruCjRcyaIIcB1udhdpyeGy7euuuyG4HU0iklfRazjvs6y3auiDK8jYlM6oM7oQ)y0HgnLzT2HcO52fn2Pcp0zcH(jWd9dG)c0E3jkL4OHtV37EV79h(73lF1I9k6x0)9hof7rj20eMhSBo2WMD7YbXP)L)V9F)sUC5MH8Ftcxa(NHgU2huWK1yJYC95VAV1YPDL4fszTOyIWTCLgovSM7rPr(0be7b4yOZnlvR4haHMQe3zSGHdcag)l2NLj(3JXcOxdupy7cVD4T8exOpqe2jD7IhoRD5s2oTTDkz5eVzchAhaeGH9SdPdAs6CJY0Y47yMqWc34i0iGn)EooLl)Ru0a0i(yEmefvZNByrKbXnwLYwmqMsl7wvQx3sBjE7Yz9WETy0agW57Dynz6EIPyumyQY8uFWvwRosD2PvQ3Q651NKqYAoJ4nrEcCFWzH(zuF43ZDNCMbmck6vYjbMs(17UcG4sYcZtyHeyA4eeb3tjro2Ilqmr1BaehSfmGeicxpDxtcLaZ9tyAVARkhghKZyF(yLRQ6j9aZEimPA6(Yaspi9W0NK(00dC7IjyE4NAw2iCKq9Gq4u5mXccKVm)72kD35svxK3vbmAcX)9piUOagkAZdrYzZLlqg5JFO2O(OlLjl)28mH0dMS6Uh9yE8gFu4LPru2lZNpFHBxyfI6QrvMLo3Pz8xQnIseu18W7cSVi0SKu9Ufjcpe81gF38fiYFmRCUrFVcbJ7okD9PmQq2zosJMnA2Os6UmztP8zQ2rpDzuq(Bswhi)8Vrvg(69(HeKVCQG2ZX5En(YmnxBBaL5Fbdfp(ImHffqFmh7gbDY65pI1eVzTgnQy12SPJtZZSQ9ItDMVk124RHhM1rxEV8OUvd2AEUt9AnQ8VZdIOdQYG3MaeVrT(SV9Bo6zl6o1f3OoojdMuySstf9C3eHGsA2hys6YuL56AO1xntjVS1MOukVA0OOBVyPLqTNRko9lhI9UIizjf0bA7HIGcMkXqTH6y5LBQZMPCkbSq3qahekENzef5x1vidGi2YQxsKaByQyeBL(tgwErioxjzYLdgLq8gYAPu2gk9cRWp1eMeoLPbXAYGHfkkoev4OeS)Sxh(638SrdB2SM9mmzbkv6OXTXz88f7iF6U5wJPyWsIWXPp2i9RnmLKhHH51uAV8wFa1mvq96VGoVD()y2JW(wnGb7D0SUm5wgjXvcGkexuwHlxPi3fij7qhRbA47Dl(yxv5UQEDTlBvPsdxjLUloWGHjQNhcJFWY9QkS8jyoscV8dNlPiYWBgRRvJPQnbyT8o7B5fcExDC6NxyCFedRcyMA1vnIfIeaw9rrjqEMxOst6F6p)Yc5p97)ZD255Yn9fglNjs8MyuA04L5UZKv8001lYp6eOFX()ZL))p

Bisector Report

No response

@mrbuds mrbuds added the 🐛 Bug This is a problem with WeakAuras. label Oct 2, 2024
@github-actions github-actions bot added the ⏱ Awaiting Response This ticket hasn't been triaged yet. label Oct 2, 2024
@InfusOnWoW InfusOnWoW mentioned this issue Oct 3, 2024
1 task
InfusOnWoW added a commit to InfusOnWoW/WeakAuras2 that referenced this issue Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⏱ Awaiting Response This ticket hasn't been triaged yet. 🐛 Bug This is a problem with WeakAuras.
Projects
None yet
Development

No branches or pull requests

1 participant