forked from mirror/azerothcore-wotlk
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:
@@ -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())
|
if (Group* group = player->GetGroup())
|
||||||
{
|
{
|
||||||
@@ -479,18 +479,17 @@ struct npc_aged_dying_ancient_kodo : public ScriptedAI
|
|||||||
{
|
{
|
||||||
Player* grpPlayer = itr->GetSource();
|
Player* grpPlayer = itr->GetSource();
|
||||||
if (grpPlayer->HasAura(SPELL_KODO_KOMBO_PLAYER_BUFF))
|
if (grpPlayer->HasAura(SPELL_KODO_KOMBO_PLAYER_BUFF))
|
||||||
grpPlayer->TalkedToCreature(creature->GetEntry(), ObjectGuid::Empty);
|
grpPlayer->TalkedToCreature(me->GetEntry(), ObjectGuid::Empty);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (player->HasAura(SPELL_KODO_KOMBO_PLAYER_BUFF))
|
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);
|
player->RemoveAurasDueToSpell(SPELL_KODO_KOMBO_PLAYER_BUFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
SendGossipMenuFor(player, NPC_TEXT_KODO, creature->GetGUID());
|
SendGossipMenuFor(player, NPC_TEXT_KODO, me->GetGUID());
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user