View Single Post
05-27-18, 12:01 PM   #5
Ammako
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 256
This is one of those things I told you about where if you have multiple hooks/functions that edit the same thing, you may end up with conflicts like this where code may fight over who gets to apply their change (in your case, the game has code trying to apply a name without the appended realm name but another bit of code hooked to the same function attempts to change the name with their arena ID at the same time.)

You'll have to edit your existing hook to add this new clause in, and prevent this from happening. i.e. add logic that checks if you are in an arena, and if you are, then names get changed to arena ID, otherwise they get changed to name w/ server name stripped out.

(Note, to help more people spot potential issues like this, it is best to show the whole code for your addon, so that others can have a better understanding of context and why something may be happening.)
  Reply With Quote