1. [Addon] BattlegroundTargets (Mercenary Mode + Healer Detection)

    Hi!
    Just wanted to share a modified version of BattlegroundTargets.
    This version includes a Healer Detection system implemented by Nobrainx.
    I made some adjustments to ensure compatibility with Mercenary Mode.
    I also implemented a callback from my addon BattleGroundHealers to provide enhanced combatlog–based detection, improving BGT’s HD system.
    Additionally, I completed the flag carrier tracking feature (the original backport missed Eye of the Storm support), along with some other minor tweaks.


    BattlegroundTargets

    Features
    - Creates clickable pseudo unit frames for battleground enemies.
    - Allows targeting (left-click) and focusing (right-click) directly from the frame.
    - Special indicators for target, focus, role and other statuses.
    - Flag Carrier Tracking System for Warsong Gulch and Eye of the Storm.
    - Support for Cross-Faction Battlegrounds and Mercenary Mode.
    - Integrated Healer Detection System, including a persistent database.
    - Incorporates BattleGroundHealers’ combatlog-based method for improved detection


    Slash Commands
    • /bgt : Opens the configuration panel..
    • /bgt help : Prints all available commands
    • /bgt hdlog : Announces each healer detection in your local chat.
    • /bgt hdlogAlways : Enables persistent detection announcements (survives relogs).
    • /bgt hdreport : Reports all detected unit roles in your local chat.
    • /bgt dbStoragePeriod <#> : Sets how long healer detections are retained in the DB (# in months, 0–11).


    Links
    - GitHub Repository
    - Direct Download (CF-HD v1.2.3)

    Edited: December 16, 2025

  2. July 8, 2025  
    Hi, first of all, thank you very much for your contribution.
    I haven't been able to get the check range to work. Do you know anything about this?

  3. Hi, first of all, thank you very much for your contribution.
    I haven't been able to get the check range to work. Do you know anything about this?
    Hi! You're welcome :)

    About the Range-Check feature:

    The addon uses two different strategies to estimate whether enemy players are within range, but it’s important to note that both are indirect methods, and the results are always approximations (because the game does not provide exact distance information through the API).

    1. ClassSpells-based detection: This method uses a class-specific spell (like Charge for Warriors or SWP for Priests) and checks whether that spell would be in range on a visible enemy unit — such as your target, focus, or even a raid member’s current target (e.g. raid1target).
    It relies on the WoW API function IsSpellInRange(spellName, unitID), which is fairly accurate, but it only works when the enemy has a valid unitID.
    This check runs every 0.2 seconds per enemy, and the result is temporarily stored to control range-check indicators.

    2. CombatLog-based detection: This method listens to all combat events via COMBAT_LOG_EVENT_UNFILTERED*. When an enemy casts a spell that hits you or one of your teammates (or vice versa), and that spell has a known maximum range (from GetSpellInfo(spellId)), the addon assumes the enemy is within that distance.
    This approach is more flexible since it can detect enemies without needing a unitID, however, it is also less accurate, more speculative, and heavier on CPU usage due to the high frequency of CLEU events and the processing required to handle them.

    * EDIT: After some testing, it seems that the Combatlog-based detection was broken due to a mismatch between the CLEU argument structure in Cata and the one used in WotLK. This is now fixed; you can redownload the addon from the same link.

    Personally, I choose not to enable the Range-Check feature, due to its limited precision and performance cost, but it’s totally valid to experiment with it or even contribute improvements.

    I hope this helped you!
    Edited: July 15, 2025

  4. hello.

    Found 2 issues with this.

    I'm normally alli. If you are horde(mercenary mode) in a bg, and mid BG you accept a bg invite to a different BG, and you are the opposite faction, so alli, then, it still shows you players in alli team(your own), even tho you are alli now.

    Also, sometimes, upon leaving BG, the frame with details of players is not removed and lua error is displayed.

  5. hello.

    Found 2 issues with this.

    I'm normally alli. If you are horde(mercenary mode) in a bg, and mid BG you accept a bg invite to a different BG, and you are the opposite faction, so alli, then, it still shows you players in alli team(your own), even tho you are alli now.

    Also, sometimes, upon leaving BG, the frame with details of players is not removed and lua error is displayed.
    Hi! About the first issue, I think I can imagine what’s causing it. I’ll take a closer look later, since fixing it would require changing the faction detection strategy, which currently works quite well for any cross-faction system (not only Warmane's) in the usual case of joining a BG while being in the open world.

    About the second one, it would be very helpful if you could provide a screenshot or a copy-paste of the LUA error. Even better if you can get the BugGrabber + BugSack report, since that gives the exact trace of where the error comes from. As it hasn’t happened to me personally, it’s probably related to some addon interaction.

  6. I'm normally alli. If you are horde(mercenary mode) in a bg, and mid BG you accept a bg invite to a different BG, and you are the opposite faction, so alli, then, it still shows you players in alli team(your own), even tho you are alli now.
    This should be fixed now, ty for the report. I’d appreciate it if you could double-check.

    EDIT: I've made further changes to the faction detection method. It should work more reliably now. If anyone finds any related bugs, please report them, especially when using non-English clients.
    Edited: October 22, 2025

  7. hi mate, this is the error, i had it twice today, they are the same.




    edit://
    also, one of your newest versions of your addons is causing wow crash/error. I'm looking into it
    One of :
    BG healers, BG Targets or Plate buffs
    Edited: October 26, 2025

  8. hi mate, this is the error, i had it twice today, they are the same.




    edit://
    also, one of your newest versions of your addons is causing wow crash/error. I'm looking into it
    One of :
    BG healers, BG Targets or Plate buffs
    Just updated it, should be fixed now.

    I also fixed an issue where the addon was clearing the DB-detected healer status when targeting and not finding a healer-specific buff (this mostly happened at the start of BGs, and was later corrected by the other detection methods).

  9. Sorry for the late reply! I've tested the new version and everything seems to be working correctly. Thank you so much for your effort!

  10. for some reason this "Frame" remind me of Good old Goldpaw raid frame...

  11. ok will test this newest version now :)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •