fix(Scripts/Desolance): use correct gossip hook for kodo kombo quest (#25104)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4e7e041a27
commit
3a668f9e77
1 changed files with 5 additions and 6 deletions
|
|
@ -469,9 +469,9 @@ struct npc_aged_dying_ancient_kodo : public ScriptedAI
|
|||
}
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* player, Creature* creature)
|
||||
void sGossipHello(Player* player) override
|
||||
{
|
||||
if (creature->HasAura(SPELL_KODO_KOMBO_DESPAWN_BUFF))
|
||||
if (me->HasAura(SPELL_KODO_KOMBO_DESPAWN_BUFF))
|
||||
{
|
||||
if (Group* group = player->GetGroup())
|
||||
{
|
||||
|
|
@ -479,18 +479,17 @@ struct npc_aged_dying_ancient_kodo : public ScriptedAI
|
|||
{
|
||||
Player* grpPlayer = itr->GetSource();
|
||||
if (grpPlayer->HasAura(SPELL_KODO_KOMBO_PLAYER_BUFF))
|
||||
grpPlayer->TalkedToCreature(creature->GetEntry(), ObjectGuid::Empty);
|
||||
grpPlayer->TalkedToCreature(me->GetEntry(), ObjectGuid::Empty);
|
||||
}
|
||||
}
|
||||
else
|
||||
if (player->HasAura(SPELL_KODO_KOMBO_PLAYER_BUFF))
|
||||
player->TalkedToCreature(creature->GetEntry(), ObjectGuid::Empty);
|
||||
player->TalkedToCreature(me->GetEntry(), ObjectGuid::Empty);
|
||||
|
||||
player->RemoveAurasDueToSpell(SPELL_KODO_KOMBO_PLAYER_BUFF);
|
||||
}
|
||||
|
||||
SendGossipMenuFor(player, NPC_TEXT_KODO, creature->GetGUID());
|
||||
return true;
|
||||
SendGossipMenuFor(player, NPC_TEXT_KODO, me->GetGUID());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue