mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 00:09:31 +02:00
hsldklahdlhalhdlahldhlah
This commit is contained in:
parent
893fddcb12
commit
101e58e9ef
@ -2631,7 +2631,10 @@ export class ImprisonTag extends MoveRestrictionBattlerTag {
|
||||
* @returns source pokemon {@linkcode Pokemon} or undefined
|
||||
*/
|
||||
private retrieveSource(scene: BattleScene): Pokemon | undefined {
|
||||
return scene.getPokemonById(this.sourceId);
|
||||
if (this.sourceId) {
|
||||
return scene.getPokemonById(this.sourceId) ?? undefined;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user