mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-23 16:52:24 +02:00
Mock BattleScene.addPokemonIcon
in tests
This commit is contained in:
parent
07df67ef39
commit
7384cc47b9
@ -91,6 +91,7 @@ export default class GameWrapper {
|
|||||||
Pokemon.prototype.updateFusionPalette = () => null;
|
Pokemon.prototype.updateFusionPalette = () => null;
|
||||||
Pokemon.prototype.cry = () => null;
|
Pokemon.prototype.cry = () => null;
|
||||||
Pokemon.prototype.faintCry = (cb) => { if (cb) cb(); };
|
Pokemon.prototype.faintCry = (cb) => { if (cb) cb(); };
|
||||||
|
BattleScene.prototype.addPokemonIcon = () => new Phaser.GameObjects.Container(this.scene);
|
||||||
}
|
}
|
||||||
|
|
||||||
setScene(scene: BattleScene) {
|
setScene(scene: BattleScene) {
|
||||||
|
Loading…
Reference in New Issue
Block a user