fix(Scripts/TempleOfAhnQiraj): Anubisath Sentinels should emote af… (#13797)

fix(Scripts/Temmple of AhnQiraj): Anubisath Sentinels should emote after sharing buffs.

Fixes #13544
This commit is contained in:
UltraNix
2022-12-06 13:25:26 +01:00
committed by GitHub
parent 2e1b9d6f75
commit fbc78d5ffa
2 changed files with 13 additions and 1 deletions

View File

@@ -49,7 +49,8 @@ enum Spells
SPELL_HEAL_BRETHEN = 26565,
SPELL_ENRAGE = 8599,
TALK_ENRAGE = 0
TALK_ENRAGE = 0,
TALK_SHARE_BUFFS = 1
};
class npc_anubisath_sentinel : public CreatureScript
@@ -275,6 +276,7 @@ public:
void JustDied(Unit* /*killer*/) override
{
bool cast = false;
for (int ni = 0; ni < 3; ++ni)
{
Creature* sent = ObjectAccessor::GetCreature(*me, NearbyGUID[ni]);
@@ -282,10 +284,16 @@ public:
continue;
if (sent->isDead())
continue;
cast = true;
DoCast(sent, SPELL_HEAL_BRETHEN, true);
DoCast(sent, SPELL_TRANSFER_POWER, true);
}
if (cast)
{
Talk(TALK_SHARE_BUFFS);
}
DoCastSelf(SPELL_SUMMON_SMALL_OBSIDIAN_CHUNK, true);
}