aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/NPCHandler.cpp
diff options
context:
space:
mode:
authorMaks Szokalski <42069493+illunix@users.noreply.github.com>2020-09-10 16:57:11 +0200
committerShauren <shauren.trinity@gmail.com>2022-02-05 22:18:19 +0100
commitbc04acb72652882290cef49b2055d3cf1ab12f36 (patch)
treeb430b10375254570eb8c4c9ed802066ba0c14b96 /src/server/game/Handlers/NPCHandler.cpp
parent013c9b2cb7404a6d03443eb39f49622dcc99a7fa (diff)
Add "On" to some gossip methods in AI (#25415)
* Add "On" to some methods * Update npc_innkeeper.cpp * Update zone_borean_tundra.cpp (cherry picked from commit 41188eb535e445b73909659980257da2939e4be4)
Diffstat (limited to 'src/server/game/Handlers/NPCHandler.cpp')
-rw-r--r--src/server/game/Handlers/NPCHandler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Handlers/NPCHandler.cpp b/src/server/game/Handlers/NPCHandler.cpp
index b5b44b03a20..c98b8fa58d9 100644
--- a/src/server/game/Handlers/NPCHandler.cpp
+++ b/src/server/game/Handlers/NPCHandler.cpp
@@ -178,7 +178,7 @@ void WorldSession::HandleGossipHelloOpcode(WorldPackets::NPC::Hello& packet)
}
_player->PlayerTalkClass->ClearMenus();
- if (!unit->AI()->GossipHello(_player))
+ if (!unit->AI()->OnGossipHello(_player))
{
// _player->TalkedToCreature(unit->GetEntry(), unit->GetGUID());
_player->PrepareGossipMenu(unit, unit->GetCreatureTemplate()->GossipMenuId, true);
@@ -242,12 +242,12 @@ void WorldSession::HandleGossipSelectOptionOpcode(WorldPackets::NPC::GossipSelec
{
if (unit)
{
- if (!unit->AI()->GossipSelectCode(_player, packet.GossipID, packet.GossipIndex, packet.PromotionCode.c_str()))
+ if (!unit->AI()->OnGossipSelectCode(_player, packet.GossipID, packet.GossipIndex, packet.PromotionCode.c_str()))
_player->OnGossipSelect(unit, packet.GossipIndex, packet.GossipID);
}
else
{
- if (!go->AI()->GossipSelectCode(_player, packet.GossipID, packet.GossipIndex, packet.PromotionCode.c_str()))
+ if (!go->AI()->OnGossipSelectCode(_player, packet.GossipID, packet.GossipIndex, packet.PromotionCode.c_str()))
_player->OnGossipSelect(go, packet.GossipIndex, packet.GossipID);
}
}
@@ -255,12 +255,12 @@ void WorldSession::HandleGossipSelectOptionOpcode(WorldPackets::NPC::GossipSelec
{
if (unit)
{
- if (!unit->AI()->GossipSelect(_player, packet.GossipID, packet.GossipIndex))
+ if (!unit->AI()->OnGossipSelect(_player, packet.GossipID, packet.GossipIndex))
_player->OnGossipSelect(unit, packet.GossipIndex, packet.GossipID);
}
else
{
- if (!go->AI()->GossipSelect(_player, packet.GossipID, packet.GossipIndex))
+ if (!go->AI()->OnGossipSelect(_player, packet.GossipID, packet.GossipIndex))
_player->OnGossipSelect(go, packet.GossipIndex, packet.GossipID);
}
}