@@ -37,7 +37,7 @@ export async function hunt(userRequesting: User) {
37
37
38
38
const playerPerformance = await findSinglePlayerPerformance (
39
39
player . id ,
40
- round . _gameId ,
40
+ round . _arenaGame ?. _gameId ! ,
41
41
transaction
42
42
) ;
43
43
const hud = arenaCommandReply . playerHUD ( player , zone , playerPerformance ) ;
@@ -48,7 +48,7 @@ export async function hunt(userRequesting: User) {
48
48
const targetGroup = generateTargetGroup (
49
49
player ,
50
50
zone . _players ?? [ ] ,
51
- ! ! round . _game ?. _arena ?. teamBased
51
+ ! ! round . _arenaGame ?. teamBased
52
52
) ;
53
53
54
54
if ( targetGroup . length === 0 ) {
@@ -190,7 +190,7 @@ export async function chooseWeapon(userRequesting: User, selectedWeapon: number,
190
190
191
191
const playerPerformance = await findSinglePlayerPerformance (
192
192
player . id ,
193
- round . _gameId ,
193
+ round . _arenaGame ?. _gameId ! ,
194
194
transaction
195
195
) ;
196
196
const hud = arenaCommandReply . playerHUD ( player , zone , playerPerformance ) ;
@@ -203,7 +203,7 @@ export async function chooseWeapon(userRequesting: User, selectedWeapon: number,
203
203
const targetGroup = generateTargetGroup (
204
204
player ,
205
205
zone . _players ?? [ ] ,
206
- ! ! round . _game ?. _arena ?. teamBased
206
+ ! ! round . _arenaGame ?. teamBased
207
207
) ;
208
208
209
209
const visiblePlayers = weapon ?. hasTrait ( TRAIT . DETECT )
@@ -259,15 +259,15 @@ export async function chooseTarget(userRequesting: User, selectedTargetId: numbe
259
259
}
260
260
261
261
const targetPlayer = await findPlayerByUser (
262
- round . _gameId ,
262
+ round . _arenaGame ?. _gameId ! ,
263
263
selectedTargetId ,
264
264
false ,
265
265
transaction
266
266
) ;
267
267
268
268
const playerPerformance = await findSinglePlayerPerformance (
269
269
player . id ,
270
- round . _gameId ,
270
+ round . _arenaGame ?. _gameId ! ,
271
271
transaction
272
272
) ;
273
273
const hud = arenaCommandReply . playerHUD ( player , zone , playerPerformance ) ;
0 commit comments