Skip to content

Commit

Permalink
HFR: Hellfire Watchers should cast heal (30643) when Watchkeeper Garg…
Browse files Browse the repository at this point in the history
…olmar hits 40%

Closes #623
  • Loading branch information
miraco authored and killerwife committed Aug 3, 2023
1 parent 9bf4a48 commit ad1e330
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ struct boss_watchkeeper_gargolmarAI : public CombatAI
if (m_creature->GetHealthPercent() < 40.0f)
{
DoScriptText(SAY_HEAL, m_creature);

CreatureList watcherList;
GetCreatureListWithEntryInGrid(watcherList, m_creature, NPC_HELLFIRE_WATCHER, 100.0f);
for (Creature* watcher : watcherList)
{
if (watcher->IsAlive())
m_creature->AI()->SendAIEvent(AI_EVENT_CUSTOM_EVENTAI_A, m_creature, watcher);
}

SetActionReadyStatus(action, false);
}
break;
Expand Down

0 comments on commit ad1e330

Please sign in to comment.