Skip to content

Commit

Permalink
Fix colosseum combat achievement (#6182)
Browse files Browse the repository at this point in the history
  • Loading branch information
TastyPumPum authored Nov 9, 2024
1 parent d75a290 commit 0af1b20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/combat_achievements/elite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,8 @@ export const eliteCombatAchievements: CombatAchievement[] = [
rng: {
chancePerKill: 12,
hasChance: (data, _user, index) =>
data.type === 'Colosseum' && (!data.diedAt || (Array.isArray(data.diedAt) && data.diedAt[index]! > 7))
data.type === 'Colosseum' &&
(!data.diedAt || (Array.isArray(data.diedAt) && (!data.diedAt[index] || data.diedAt[index] > 7)))
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion src/lib/combat_achievements/master.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,8 @@ export const masterCombatAchievements: CombatAchievement[] = [
rng: {
chancePerKill: 15,
hasChance: (data, _user, index) =>
data.type === 'Colosseum' && (!data.diedAt || (Array.isArray(data.diedAt) && data.diedAt[index]! > 11))
data.type === 'Colosseum' &&
(!data.diedAt || (Array.isArray(data.diedAt) && (!data.diedAt[index] || data.diedAt[index] > 11)))
}
},
{
Expand Down

0 comments on commit 0af1b20

Please sign in to comment.