From f902705a4d81dbb97e966401e60d33b0fe329cb5 Mon Sep 17 00:00:00 2001 From: killerwife Date: Wed, 10 Jan 2024 08:01:26 +0100 Subject: [PATCH] Kara: Add back bct on repentance @miraco your commit was fine apart from this. I generally keep the spells in here and I also put the bct here so its easier to maintain the boss a little. --- .../karazhan/boss_maiden_of_virtue.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/karazhan/boss_maiden_of_virtue.cpp b/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/karazhan/boss_maiden_of_virtue.cpp index 232c86f0ef..3e3d5e8710 100644 --- a/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/karazhan/boss_maiden_of_virtue.cpp +++ b/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/karazhan/boss_maiden_of_virtue.cpp @@ -34,6 +34,11 @@ enum SAY_REPENTANCE1 = 15080, SAY_REPENTANCE2 = 13396, SAY_DEATH = 15081, + + SPELL_REPENTANCE = 29511, + SPELL_HOLYFIRE = 29522, + SPELL_HOLYWRATH = 32445, + SPELL_HOLYGROUND = 29512 }; enum MaidenOfVirtueActions @@ -76,6 +81,16 @@ struct boss_maiden_of_virtueAI : public CombatAI if (m_instance) m_instance->SetData(TYPE_MAIDEN, FAIL); } + + void OnSpellCast(SpellEntry const* spellInfo, Unit* /*target*/) override + { + switch (spellInfo->Id) + { + case SPELL_REPENTANCE: + DoBroadcastText(urand(0, 1) ? SAY_REPENTANCE1 : SAY_REPENTANCE2, m_creature); + break; + } + } }; void AddSC_boss_maiden_of_virtue()