valkyrnstudios / RankSentinel

MIT License
4 stars 3 forks source link

Handle automatically downranked abilities on lower levels #46

Closed SabreValkyrn closed 2 years ago

SabreValkyrn commented 2 years ago

Abilities automatically downrank for the highest available rank for a lowbie character.

The easiest way would be just ignoring detections if the target is >10 levels lower than the caster.

SabreValkyrn commented 2 years ago

Looks like UnitLevel returns 0 for playername lookups of non-grouped members.

Dump: value=UnitLevel("target")
[1]=1
Dump: value=UnitLevel("Oldbeggar")
[1]=0
Dump: UnitLevel(UnitName("target"))
[1]=0