mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user