File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/server/scripts/Kalimdor Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments