Core/Grids: Allow customizing packets sent with MessageDistDeliverer and MessageDistDelivererToHostile depending on receiver

Port From (https://github.com/TrinityCore/TrinityCore/commit/3a37a2e0d7ce79d55c301f4246f08f1fc5c9c6d7)
This commit is contained in:
hondacrx
2021-04-30 11:08:49 -04:00
parent 88d833945b
commit 7c83501ba7
4 changed files with 67 additions and 105 deletions
@@ -32,14 +32,14 @@ namespace Game.Networking.Packets
public override void Write() { }
public void DisableAdvancedCombatLogging()
public void SetAdvancedCombatLogging(bool value)
{
LogData = null;
_includeLogData = value;
}
public void WriteLogDataBit()
{
_worldPacket.WriteBit(LogData != null);
_worldPacket.WriteBit(_includeLogData);
}
public void FlushBits()
@@ -49,11 +49,12 @@ namespace Game.Networking.Packets
public void WriteLogData()
{
if (LogData != null)
if (_includeLogData)
LogData.Write(_worldPacket);
}
internal SpellCastLogData LogData;
bool _includeLogData;
}
class SpellNonMeleeDamageLog : CombatLogServerPacket