WoutProvost/FCNPC-AI

Only create textdraws when needed

WoutProvost opened this issue · 1 comments

Right now textdraws are created for every boss slot. That means also for empty slots. This is a waste and they should only be created when the npc is created and destroyed when the npc is destroyed.

Also, when a 'show only these textdraws' feature is added, only create the textdraws that are actually going to be shown. For example: don't create the castbar textdraws when the castbar will never be shown for a particular NPC.