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
@@ -973,10 +973,17 @@ void SmartGameObjectAI::Reset()
|
||||
}
|
||||
|
||||
// Called when a player opens a gossip dialog with the gameobject.
|
||||
bool SmartGameObjectAI::GossipHello(Player* player, bool reportUse)
|
||||
bool SmartGameObjectAI::GossipHello(Player* player)
|
||||
{
|
||||
TC_LOG_DEBUG("scripts.ai", "SmartGameObjectAI::GossipHello");
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_GOSSIP_HELLO, player, uint32(reportUse), 0, false, nullptr, me);
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_GOSSIP_HELLO, player, 0, 0, false, nullptr, me);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool SmartGameObjectAI::OnReportUse(Player* player)
|
||||
{
|
||||
TC_LOG_DEBUG("scripts.ai", "SmartGameObjectAI::OnReportUse");
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_GOSSIP_HELLO, player, 1, 0, false, nullptr, me);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user