Skip to content

Commit

Permalink
(Scripts/Ahnkahet): Fixed problem gathering GUIDS from bosses. (azero…
Browse files Browse the repository at this point in the history
  • Loading branch information
Letic92 authored Apr 9, 2024
1 parent 39b9488 commit 4199cb8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ enum AhnKahetCreatures
NPC_ELDER_NADOX = 29309,
NPC_PRINCE_TALDARAM = 29308,
NPC_JEDOGA_SHADOWSEEKER = 29310,
NPC_HERALD_JOLAZJ = 29311,
NPC_HERALD_VOLAZJ = 29311,
NPC_AMANITAR = 30258,
// Teldaram and Jedoga encounter related
NPC_JEDOGA_CONTROLLER = 30181,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ enum Yells

struct boss_elder_nadox : public BossAI
{
boss_elder_nadox(Creature* creature) : BossAI(creature, DATA_PRINCE_TALDARAM),
boss_elder_nadox(Creature* creature) : BossAI(creature, DATA_ELDER_NADOX),
guardianSummoned(false),
respectYourElders(true)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ struct npc_twilight_volunteer : public ScriptedAI
}
else if (id == POINT_RITUAL)
{
if (Creature* jedoga = ObjectAccessor::GetCreature(*me, pInstance->GetGuidData(DATA_JEDOGA_SHADOWSEEKER)))
if (Creature* jedoga = pInstance->GetCreature(DATA_JEDOGA_SHADOWSEEKER))
{
jedoga->AI()->Talk(SAY_SACRIFICE_2);
jedoga->CastSpell(nullptr, SPELL_SACRIFICE_BEAM); /// @todo: Visual is not working. (cosmetic)
Expand All @@ -665,7 +665,7 @@ struct npc_twilight_volunteer : public ScriptedAI
me->SetWalk(true);
me->GetMotionMaster()->MovePoint(POINT_RITUAL, JedogaPosition[2], false);

if (Creature* jedoga = ObjectAccessor::GetCreature(*me, pInstance->GetGuidData(DATA_JEDOGA_SHADOWSEEKER)))
if (Creature* jedoga = pInstance->GetCreature(DATA_JEDOGA_SHADOWSEEKER))
{
if (Creature* ritualTrigger = jedoga->SummonCreature(NPC_JEDOGA_CONTROLLER, JedogaPosition[2], TEMPSUMMON_TIMED_DESPAWN, 15000))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@

ObjectData const creatureData[] =
{
{ NPC_PRINCE_TALDARAM, DATA_PRINCE_TALDARAM },
{ 0, 0 }
{ NPC_PRINCE_TALDARAM, DATA_PRINCE_TALDARAM },
{ NPC_JEDOGA_SHADOWSEEKER, DATA_JEDOGA_SHADOWSEEKER },
{ NPC_ELDER_NADOX, DATA_ELDER_NADOX },
{ NPC_HERALD_VOLAZJ, DATA_HERALD_VOLAZJ },
{ NPC_AMANITAR, DATA_AMANITAR },
{ 0, 0 }
};

DoorData const doorData[] =
Expand Down

0 comments on commit 4199cb8

Please sign in to comment.