Skip to content

Commit

Permalink
Battle fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Jun 5, 2023
1 parent 571f50a commit 7d723e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ private async Task HandleBattleHostDataAsync(BattleHostDataFromClientPacket pack
if (State != PlayerState.Initialized)
return;

await _eventDispatcher.DispatchAsync(new PlayerSentRawP3DPacketEvent(this, new BattleHostDataToClientPacket { BattleData = packet.BattleData }), ct);
await _eventDispatcher.DispatchAsync(new PlayerSentRawP3DPacketEvent(this, new BattleHostDataToClientPacket { Origin = packet.Origin, BattleData = packet.BattleData }), ct);
}
private async Task HandleBattleJoinAsync(BattleJoinPacket packet, CancellationToken ct)
{
Expand Down Expand Up @@ -492,7 +492,7 @@ private async Task HandleBattlePokemonDataAsync(BattleEndRoundDataFromClientPack
if (State != PlayerState.Initialized)
return;

await _eventDispatcher.DispatchAsync(new PlayerSentRawP3DPacketEvent(this, new BattleEndRoundDataToClientPacket { BattleData = packet.BattleData }), ct);
await _eventDispatcher.DispatchAsync(new PlayerSentRawP3DPacketEvent(this, new BattleEndRoundDataToClientPacket { Origin = packet.Origin, BattleData = packet.BattleData }), ct);
}
private async Task HandleBattleQuitAsync(BattleQuitPacket packet, CancellationToken ct)
{
Expand Down

0 comments on commit 7d723e0

Please sign in to comment.