mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 06:53:27 +02:00
updated todo assertion to maybe not be dumb
This commit is contained in:
parent
debdb8a715
commit
23e75d7853
@ -1319,7 +1319,7 @@ export class BattleScene extends SceneBase {
|
||||
this.handleNonFixedBattle(resolved);
|
||||
}
|
||||
|
||||
if (!resolved.battleType) {
|
||||
if (resolved.battleType == null) {
|
||||
throw new Error("Whoopsie! I guess my type checks were wrong");
|
||||
}
|
||||
resolved.double = this.checkIsDouble(resolved as NewBattleConstructedProps);
|
||||
|
Loading…
Reference in New Issue
Block a user