highestrankname

Similar to highestrank, however it returns the textual value of the rank, useful for mapping a spell that has ranked applied de/buffs on another unit. As with highestrank, the input spell must be in the players spell book.

highestrankname(spellId) : string

Example

if highestrankname(635) then
return print('you can cast 639 Holy Light ' .. highestrankname(635))
end