Core/AI: segregate GameObject ReportUse from normal Use (lock open/normal click)

Port From (https://github.com/TrinityCore/TrinityCore/commit/5903a10a834b1198702b024182581799648540ff)
This commit is contained in:
hondacrx
2020-07-22 14:21:29 -04:00
parent 0ece69bf90
commit 61b6606dce
13 changed files with 58 additions and 50 deletions
@@ -371,7 +371,7 @@ namespace Scripts.Northrend.AzjolNerub.Ahnkahet.PrinceTaldaram
instance = go.GetInstanceScript();
}
public override bool GossipHello(Player player, bool reportUse)
public override bool GossipHello(Player player)
{
Creature PrinceTaldaram = ObjectAccessor.GetCreature(me, instance.GetGuidData(DataTypes.PrinceTaldaram));
if (PrinceTaldaram && PrinceTaldaram.IsAlive())
@@ -429,7 +429,7 @@ namespace Scripts.Northrend.Gundrak
instance = go.GetInstanceScript();
}
public override bool GossipHello(Player player, bool reportUse)
public override bool GossipHello(Player player)
{
me.AddFlag(GameObjectFlags.NotSelectable);
me.SetGoState(GameObjectState.Active);
@@ -201,7 +201,7 @@ namespace Scripts.Northrend.Nexus.Nexus
instance = go.GetInstanceScript();
}
public override bool GossipHello(Player player, bool reportUse)
public override bool GossipHello(Player player)
{
Creature pKeristrasza = ObjectAccessor.GetCreature(me, instance.GetGuidData(DataTypes.Keristrasza));
if (pKeristrasza && pKeristrasza.IsAlive())
+1 -1
View File
@@ -1602,7 +1602,7 @@ namespace Scripts.Northrend.Ulduar
instance = go.GetInstanceScript();
}
public override bool GossipHello(Player player, bool reportUse)
public override bool GossipHello(Player player)
{
if (me.HasFlag(GameObjectFlags.NotSelectable))
return true;