Remove reportUse parameter on GameObjectAI::GossipHello and give it its own event.
Ported from 3.3.5
This commit is contained in:
1 parent
843c21048a
commit
c8aeadc949
48 files changed
+99
-87
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user