TP is a point variable while TU is a unit variable.
What you requested is a re-adaptation of this spell. I can provide the request, though give me some time since I am extremely occupied at this time of the year.
(Personally, the code provided by Pyrogasm is exactly the expansion needed, and it can be considered a much faster option than waiting for my update)