mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Update src/test/utils/helpers/overridesHelper.ts
This commit is contained in:
parent
2e85b3cf7f
commit
50abe76dc3
@ -243,9 +243,9 @@ export class OverridesHelper extends GameManagerHelper {
|
||||
* @param battleType battle type to set
|
||||
* @returns `this`
|
||||
*/
|
||||
public battleType(battleType: BattleStyle): this {
|
||||
public battleType(battleType: BattleStyle | null): this {
|
||||
vi.spyOn(Overrides, "BATTLE_TYPE_OVERRIDE", "get").mockReturnValue(battleType);
|
||||
this.log(`Battle type set to ${battleType} only!`);
|
||||
this.log(battleType === null ? "Battle type override disabled!" : `Battle type set to ${battleType}!`);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user