Mock BattleScene.addPokemonIcon in tests

This commit is contained in:
NightKev 2024-12-06 23:25:40 -08:00 committed by Sirz Benjie
parent 07df67ef39
commit 7384cc47b9
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -91,6 +91,7 @@ export default class GameWrapper {
Pokemon.prototype.updateFusionPalette = () => null;
Pokemon.prototype.cry = () => null;
Pokemon.prototype.faintCry = (cb) => { if (cb) cb(); };
BattleScene.prototype.addPokemonIcon = () => new Phaser.GameObjects.Container(this.scene);
}
setScene(scene: BattleScene) {