Misc fixes.
This commit is contained in:
@@ -96,7 +96,7 @@ namespace Game.Combat
|
||||
|
||||
public Unit GetCurrentVictim()
|
||||
{
|
||||
if (_currentVictimRef != null || _currentVictimRef.ShouldBeOffline())
|
||||
if (_currentVictimRef == null || _currentVictimRef.ShouldBeOffline())
|
||||
UpdateVictim();
|
||||
|
||||
if (_currentVictimRef != null && !_currentVictimRef.ShouldBeOffline())
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Game.Networking.Packets
|
||||
|
||||
public ObjectGuid PlayerGuid;
|
||||
public long ServerTime;
|
||||
public Array<long> AccountTimes = new((int)AccountDataTypes.Max);
|
||||
public long[] AccountTimes = new long[(int)AccountDataTypes.Max];
|
||||
}
|
||||
|
||||
public class ClientCacheVersion : ServerPacket
|
||||
|
||||
@@ -334,7 +334,7 @@ namespace Game.Networking.Packets
|
||||
_worldPacket.WriteUInt32(TutorialData[i]);
|
||||
}
|
||||
|
||||
public uint[] TutorialData = new uint[(int)Tutorials.Max];
|
||||
public uint[] TutorialData = new uint[SharedConst.MaxAccountTutorialValues];
|
||||
}
|
||||
|
||||
public class TutorialSetFlag : ClientPacket
|
||||
|
||||
@@ -564,7 +564,7 @@ namespace Game
|
||||
public void SendTutorialsData()
|
||||
{
|
||||
TutorialFlags packet = new();
|
||||
Array.Copy(tutorials, packet.TutorialData, (int)AccountDataTypes.Max);
|
||||
Array.Copy(tutorials, packet.TutorialData, SharedConst.MaxAccountTutorialValues);
|
||||
SendPacket(packet);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user