Add "On" to some gossip methods in AI

Port From (https://github.com/TrinityCore/TrinityCore/commit/bc04acb72652882290cef49b2055d3cf1ab12f36)
This commit is contained in:
hondacrx
2022-05-04 09:26:05 -04:00
parent db947e947c
commit 52ce6b2700
10 changed files with 73 additions and 73 deletions
+5 -5
View File
@@ -160,7 +160,7 @@ namespace Game
}
_player.PlayerTalkClass.ClearMenus();
if (!unit.GetAI().GossipHello(_player))
if (!unit.GetAI().OnGossipHello(_player))
{
GetPlayer().PrepareGossipMenu(unit, unit.GetCreatureTemplate().GossipMenuId, true);
GetPlayer().SendPreparedGossip(unit);
@@ -222,12 +222,12 @@ namespace Game
{
if (unit != null)
{
if (!unit.GetAI().GossipSelectCode(_player, packet.GossipID, packet.GossipIndex, packet.PromotionCode))
if (!unit.GetAI().OnGossipSelectCode(_player, packet.GossipID, packet.GossipIndex, packet.PromotionCode))
GetPlayer().OnGossipSelect(unit, packet.GossipIndex, packet.GossipID);
}
else
{
if (!go.GetAI().GossipSelectCode(_player, packet.GossipID, packet.GossipIndex, packet.PromotionCode))
if (!go.GetAI().OnGossipSelectCode(_player, packet.GossipID, packet.GossipIndex, packet.PromotionCode))
_player.OnGossipSelect(go, packet.GossipIndex, packet.GossipID);
}
}
@@ -235,12 +235,12 @@ namespace Game
{
if (unit != null)
{
if (!unit.GetAI().GossipSelect(_player, packet.GossipID, packet.GossipIndex))
if (!unit.GetAI().OnGossipSelect(_player, packet.GossipID, packet.GossipIndex))
GetPlayer().OnGossipSelect(unit, packet.GossipIndex, packet.GossipID);
}
else
{
if (!go.GetAI().GossipSelect(_player, packet.GossipID, packet.GossipIndex))
if (!go.GetAI().OnGossipSelect(_player, packet.GossipID, packet.GossipIndex))
GetPlayer().OnGossipSelect(go, packet.GossipIndex, packet.GossipID);
}
}