Is this going to leak? I've only read the leak removal tutorial on this site today, so I'm not very good at leak removal, yet .
Code:
Spellname Show
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
Set tempUnit = (Triggering unit)
Floating Text - Create floating text that reads (Name of (Ability being cast)) above tempUnit with Z offset 0.00, using font size 7.00, color (50.00%, 100.00%, 50.00%), and 0.00% transparency
Set Floating_Text = (Last created floating text)
Floating Text - Change Floating_Text: Disable permanence
Floating Text - Change the fading age of Floating_Text to 1.00 seconds
Floating Text - Change the lifespan of Floating_Text to 2.00 seconds
Wait 2.00 seconds
Custom script: call DestroyTextTag(udg_Floating_Text)