Nameplate clickthrough bug

Under certain conditions, enemy nameplates may become unclickable if the unit changed from friendly to enemy. This occurs when friendly nameplate clickthrough is enabled but enemy nameplate clickthrough is disabled.

Steps to reproduce (all addons disabled):

  1. The spot I used to test is Bastion 50, 81 when you have the “Let’s Get Ready to Humble” WQ or the “Aspirant For a Day” bonus objective. You can right click the friendly Sparring Aspirants and cause them to turn hostile.
  2. Set the clickthrough options:
    /run C_NamePlate.SetNamePlateFriendlyClickThrough(true) C_NamePlate.SetNamePlateEnemyClickThrough(false) print(“done”)
    Reload the UI to make sure it takes.
  3. Turn on both friendly and enemy nameplates. Observe that friendly nameplates are clickthrough but enemy nameplates are clickable as expected.
  4. Talk to a Sparring Aspirant to cause their nameplate to turn hostile.
  5. Test by clearing your target and trying to click the Sparring Aspirant’s nameplate. The nameplate is not clickable even though it is now an enemy nameplate.

This bug may not be that important in this particular case but I believe it has the potential to occur in PvP with Mind Control effects, which may be more impactful. For now I believe one should never enable friendly nameplate clickthrough due to this bug. The possibility of getting into a situation with an unclickable enemy nameplate is a risk not worth taking.