Skip to content

Refactor Azgalor Rain of Fire handling for melee DPS and Doomguard targeting - #12

Merged
brighton-chi merged 1 commit into
the-labfrom
copilot/modify-rain-of-fire-helper
Apr 21, 2026
Merged

Refactor Azgalor Rain of Fire handling for melee DPS and Doomguard targeting#12
brighton-chi merged 1 commit into
the-labfrom
copilot/modify-rain-of-fire-helper

Conversation

Copilot AI commented Apr 21, 2026

Copy link
Copy Markdown

Azgalor melee behavior was checking Rain of Fire state in multiple places and could continue Doomguard DPS handling while a melee bot was standing in fire. This change centralizes the Rain of Fire occupancy check and makes melee bots swap to a lesser doomguard while escaping, only falling back to movement away from Azgalor when no doomguard is available.

  • Shared Rain of Fire state

    • Added a helper for “bot is inside active Azgalor Rain of Fire”.
    • Moved active-fire pruning/lookup into shared helper logic instead of duplicating it across triggers and action code.
  • Trigger behavior

    • AzgalorBossCastsRainOfFireOnMeleeTrigger now keys off the shared helper.
    • AzgalorDoomguardsContinueToSpawnTrigger now stays inactive for melee DPS while they are inside active Rain of Fire, so fire escape behavior wins over Doomguard reprioritization.
  • Melee escape action

    • AzgalorMeleeGetOutOfFireAction now behaves as an attack-capable action.
    • When a lesser doomguard is available, melee switches to it immediately while handling Rain of Fire.
    • If no lesser doomguard is found, the action keeps the previous fallback of moving away from Azgalor.
  • Rain of Fire tracking

    • Tightened AzgalorRainOfFireScript usage to match the shared helper path and keep Rain of Fire position tracking as the single source of truth.
if (Unit* doomguard = AI_VALUE2(Unit*, "find target", "lesser doomguard"))
{
    if (bot->GetVictim() != doomguard)
        return Attack(doomguard);

    return true;
}

return MoveAway(azgalor, 5.0f);

Agent-Logs-Url: https://github.com/brighton-chi/mod-playerbots/sessions/f41fd561-b075-45cf-87bf-4a43d10ac6f6

Co-authored-by: brighton-chi <190869400+brighton-chi@users.noreply.github.com>
@brighton-chi
brighton-chi marked this pull request as ready for review April 21, 2026 21:08
@brighton-chi
brighton-chi merged commit 25246d7 into the-lab Apr 21, 2026
1 check failed
@brighton-chi
brighton-chi deleted the copilot/modify-rain-of-fire-helper branch April 21, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants