mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 22:56:24 +00:00
fix(Scripts/AhnKahet): Spawn Twilight Worshippers at Jedoga encounter… (#23800)
This commit is contained in:
@@ -44,6 +44,7 @@ enum AhnKahetCreatures
|
||||
NPC_AMANITAR = 30258,
|
||||
// Teldaram and Jedoga encounter related
|
||||
NPC_JEDOGA_CONTROLLER = 30181,
|
||||
NPC_TWILIGHT_WORSHIPPER = 30111
|
||||
};
|
||||
|
||||
enum AhnkahetSpells
|
||||
|
||||
@@ -90,6 +90,7 @@ enum SummonGroups
|
||||
{
|
||||
SUMMON_GROUP_OOC = 0,
|
||||
SUMMON_GROUP_OOC_TRIGGERS = 1,
|
||||
SUMMON_GROUP_IC_WORSHIPPERS = 2
|
||||
};
|
||||
|
||||
enum Points
|
||||
@@ -217,7 +218,7 @@ struct boss_jedoga_shadowseeker : public BossAI
|
||||
|
||||
void JustSummoned(Creature* summon) override
|
||||
{
|
||||
if (summon->GetEntry() == NPC_JEDOGA_CONTROLLER)
|
||||
if (summon->EntryEquals(NPC_JEDOGA_CONTROLLER, NPC_TWILIGHT_WORSHIPPER))
|
||||
{
|
||||
summons.Summon(summon);
|
||||
}
|
||||
@@ -326,6 +327,17 @@ struct boss_jedoga_shadowseeker : public BossAI
|
||||
_JustEngagedWith();
|
||||
Talk(SAY_AGGRO);
|
||||
ReschedulleCombatEvents();
|
||||
|
||||
std::list<TempSummon*> tempSummons;
|
||||
me->SummonCreatureGroup(SUMMON_GROUP_IC_WORSHIPPERS, &tempSummons);
|
||||
if (!tempSummons.empty())
|
||||
{
|
||||
for (TempSummon* summon : tempSummons)
|
||||
{
|
||||
if (summon)
|
||||
summon->SetStandState(UNIT_STAND_STATE_KNEEL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* who) override
|
||||
|
||||
Reference in New Issue
Block a user