Cell

Cell

2M Downloads

Could you please clarify which API your addon uses to determine whether a teammate is outside the spell cast distance?

02darlingyyl opened this issue · 0 comments

commented

Hello, I’ve heard that team framework plugins like Cell offer extensive customization options, such as making teammates outside the casting range transparent. This effectively distinguishes them from nearby teammates.

In contrast, Blizzard’s native plugins reduce the color brightness of teammates’ frames outside the casting range instead of adjusting transparency. However, the brightness reduction is subtle and not very noticeable.

Therefore, I want to write a Lua script to ​​increase the brightness decrease​​ for teammates beyond the casting range, improving visibility. But during testing, I encountered issues:


The API UnitDistanceSquaredis unavailable during raids.


CheckInteractDistanceonly checks up to ​​28 yards​​ (not 30).

I’m reaching out to ask how plugin developers like you determine whether a teammate is outside the spell cast distance?