oUF

99.9k Downloads

Empowered casts on friendly nameplates cause errors

th657 opened this issue ยท 1 comments

commented

The following error happens when an empowered cast happens on friendly nameplates:
StatusBar:GetRight(): Action[FrameMeasurement] failed because[Can't measure restricted regions]: attempted from: StatusBar:GetRight()
It could happen on enemy nameplates too but I haven't checked.

The error is caused by

local elementWidth = element:GetRight() - element:GetLeft()

Changing the line to local elementWidth = element:GetWidth() seems to work fine.

commented

Thanks for the report, didn't think to test on friendly nameplates.