mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 08:16:04 +00:00
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
|
* @returns true if waveIndex is a multiple of 50 in Endless
|
||||||
*/
|
*/
|
||||||
isEndlessBoss(waveIndex: integer): boolean {
|
isEndlessBoss(waveIndex: integer): boolean {
|
||||||
return !!(waveIndex % 50) &&
|
return waveIndex % 50 === 0 &&
|
||||||
(this.modeId === GameModes.ENDLESS || this.modeId === GameModes.SPLICED_ENDLESS);
|
(this.modeId === GameModes.ENDLESS || this.modeId === GameModes.SPLICED_ENDLESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user