In Actions:
-
Floating Text - Create floating text that reads (String((Integer((Mana of (Triggering unit))))) at (Position of (Triggering unit)) with Z offset 0.00, using font size 10.00, color (100%, 100%, 100%) and 0.00% transparency
(Position of (Triggering unit)) leaks. Try setting it to a point variable and destroy it when it is no longer needed via Custom Script.
JASS:
call RemoveLocation(yourVar)
yourVar represents the variable you are using which is pointing to that point object.
If created in GUI, add a "udg_" prefix, without quotes.