fix(Scripts/AhnKahet): Spawn Twilight Worshippers at Jedoga encounter… (#23800)

This commit is contained in:
Andrew
2025-11-20 02:52:11 -03:00
committed by GitHub
parent d119168937
commit 6d032440cf
3 changed files with 27 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ enum AhnKahetCreatures
NPC_AMANITAR = 30258,
// Teldaram and Jedoga encounter related
NPC_JEDOGA_CONTROLLER = 30181,
NPC_TWILIGHT_WORSHIPPER = 30111
};
enum AhnkahetSpells

View File

@@ -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