Corrected incorrect modulo condition in isEndlessBoss
This commit is contained in:
parent
8c77f35872
commit
7e1f2601d0
|
@ -236,7 +236,7 @@ export class GameMode implements GameModeConfig {
|
|||
* @returns true if waveIndex is a multiple of 50 in Endless
|
||||
*/
|
||||
isEndlessBoss(waveIndex: integer): boolean {
|
||||
return !!(waveIndex % 50) &&
|
||||
return waveIndex % 50 === 0 &&
|
||||
(this.modeId === GameModes.ENDLESS || this.modeId === GameModes.SPLICED_ENDLESS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue