Remove reportUse parameter on GameObjectAI::GossipHello and give it its own event.

Ported from 3.3.5
This commit is contained in:
Krudor committed 2017-12-10 13:59:13 +01:00
1 parent 843c21048a
commit c8aeadc949
48 files changed
+99 -87

No files matched your search

+1 -1
View File
@@ -337,7 +337,7 @@ void WorldSession::HandleGameobjectReportUse(WorldPacket& recvPacket)
if (GameObject* go = GetPlayer()->GetGameObjectIfCanInteractWith(guid))
{
if (go->AI()->GossipHello(_player, true))
if (go->AI()->OnReportUse(_player))
return;
_player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_USE_GAMEOBJECT, go->GetEntry());