Skip to content

Commit 3a668f9

Browse files
Nyeriahclaude
andauthored
fix(Scripts/Desolance): use correct gossip hook for kodo kombo quest (azerothcore#25104)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4e7e041 commit 3a668f9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/server/scripts/Kalimdor/zone_desolace.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -469,28 +469,27 @@ struct npc_aged_dying_ancient_kodo : public ScriptedAI
469469
}
470470
}
471471

472-
bool OnGossipHello(Player* player, Creature* creature)
472+
void sGossipHello(Player* player) override
473473
{
474-
if (creature->HasAura(SPELL_KODO_KOMBO_DESPAWN_BUFF))
474+
if (me->HasAura(SPELL_KODO_KOMBO_DESPAWN_BUFF))
475475
{
476476
if (Group* group = player->GetGroup())
477477
{
478478
for (GroupReference* itr = group->GetFirstMember(); itr != nullptr; itr = itr->next())
479479
{
480480
Player* grpPlayer = itr->GetSource();
481481
if (grpPlayer->HasAura(SPELL_KODO_KOMBO_PLAYER_BUFF))
482-
grpPlayer->TalkedToCreature(creature->GetEntry(), ObjectGuid::Empty);
482+
grpPlayer->TalkedToCreature(me->GetEntry(), ObjectGuid::Empty);
483483
}
484484
}
485485
else
486486
if (player->HasAura(SPELL_KODO_KOMBO_PLAYER_BUFF))
487-
player->TalkedToCreature(creature->GetEntry(), ObjectGuid::Empty);
487+
player->TalkedToCreature(me->GetEntry(), ObjectGuid::Empty);
488488

489489
player->RemoveAurasDueToSpell(SPELL_KODO_KOMBO_PLAYER_BUFF);
490490
}
491491

492-
SendGossipMenuFor(player, NPC_TEXT_KODO, creature->GetGUID());
493-
return true;
492+
SendGossipMenuFor(player, NPC_TEXT_KODO, me->GetGUID());
494493
}
495494
};
496495

0 commit comments

Comments
 (0)