mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 07:06:23 +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:
@@ -0,0 +1,4 @@
|
|||||||
|
--
|
||||||
|
DELETE FROM `creature_text` WHERE `CreatureID`=15264 AND `groupid`=1;
|
||||||
|
INSERT INTO `creature_text` VALUES
|
||||||
|
(15264,1,0,'%s shares his powers with his brethren.',16,0,100,0,0,0,11692,0,'Anubisath Sentinel Emote');
|
||||||
@@ -49,7 +49,8 @@ enum Spells
|
|||||||
SPELL_HEAL_BRETHEN = 26565,
|
SPELL_HEAL_BRETHEN = 26565,
|
||||||
SPELL_ENRAGE = 8599,
|
SPELL_ENRAGE = 8599,
|
||||||
|
|
||||||
TALK_ENRAGE = 0
|
TALK_ENRAGE = 0,
|
||||||
|
TALK_SHARE_BUFFS = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
class npc_anubisath_sentinel : public CreatureScript
|
class npc_anubisath_sentinel : public CreatureScript
|
||||||
@@ -275,6 +276,7 @@ public:
|
|||||||
|
|
||||||
void JustDied(Unit* /*killer*/) override
|
void JustDied(Unit* /*killer*/) override
|
||||||
{
|
{
|
||||||
|
bool cast = false;
|
||||||
for (int ni = 0; ni < 3; ++ni)
|
for (int ni = 0; ni < 3; ++ni)
|
||||||
{
|
{
|
||||||
Creature* sent = ObjectAccessor::GetCreature(*me, NearbyGUID[ni]);
|
Creature* sent = ObjectAccessor::GetCreature(*me, NearbyGUID[ni]);
|
||||||
@@ -282,10 +284,16 @@ public:
|
|||||||
continue;
|
continue;
|
||||||
if (sent->isDead())
|
if (sent->isDead())
|
||||||
continue;
|
continue;
|
||||||
|
cast = true;
|
||||||
DoCast(sent, SPELL_HEAL_BRETHEN, true);
|
DoCast(sent, SPELL_HEAL_BRETHEN, true);
|
||||||
DoCast(sent, SPELL_TRANSFER_POWER, true);
|
DoCast(sent, SPELL_TRANSFER_POWER, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cast)
|
||||||
|
{
|
||||||
|
Talk(TALK_SHARE_BUFFS);
|
||||||
|
}
|
||||||
|
|
||||||
DoCastSelf(SPELL_SUMMON_SMALL_OBSIDIAN_CHUNK, true);
|
DoCastSelf(SPELL_SUMMON_SMALL_OBSIDIAN_CHUNK, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user