Detecting who's capturing graveyards in Alterac Valley
In the current Alterac Valley meta, capturing graveyards goes against the interests of the group. Therefore it is of some value to be able to tell who's doing it. In this post I describe the process I followed to create an addon that sends an alert when someone is capping graveyards. Spell detection When a flag is being captured in Alterac Valley (or Arathi Basin for that matter) spell#24390 is cast by the player. That spell is marked as hidden but by modifying Spell.dbc we can make the client show it and expose it to the Lua API. Although the event COMBAT_LOG_EVENT_UNFILTERED shows the spell being cast, it doesn't show the target of the cast, since it's not a unit but a gameobject. This makes it impossible to tell if it's a graveyard or a base that's being captured, so this option is not optimal, since you would be sending alerts when someone started capturing a tower. I thought of using GetMinimapZoneText to detect if I was in the proximity of a graveyard before s...