From ad1e3301bca4040fbaf3b8e72d71836032af1038 Mon Sep 17 00:00:00 2001 From: Miraco Date: Thu, 3 Aug 2023 16:26:02 +0200 Subject: [PATCH] HFR: Hellfire Watchers should cast heal (30643) when Watchkeeper Gargolmar hits 40% Closes https://github.com/cmangos/mangos-tbc/pull/623 --- .../hellfire_ramparts/boss_watchkeeper_gargolmar.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/game/AI/ScriptDevAI/scripts/outland/hellfire_citadel/hellfire_ramparts/boss_watchkeeper_gargolmar.cpp b/src/game/AI/ScriptDevAI/scripts/outland/hellfire_citadel/hellfire_ramparts/boss_watchkeeper_gargolmar.cpp index b506c875ee..a72aae5ddd 100644 --- a/src/game/AI/ScriptDevAI/scripts/outland/hellfire_citadel/hellfire_ramparts/boss_watchkeeper_gargolmar.cpp +++ b/src/game/AI/ScriptDevAI/scripts/outland/hellfire_citadel/hellfire_ramparts/boss_watchkeeper_gargolmar.cpp @@ -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;