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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user