Fix parental bond softlock

This commit is contained in:
Dean 2025-04-01 11:08:35 -07:00
parent 6477be99f5
commit f083b38edb

View File

@ -912,7 +912,7 @@ export default class Move implements Localizable {
]; ];
// ...and cannot enhance Pollen Puff when targeting an ally. // ...and cannot enhance Pollen Puff when targeting an ally.
const exceptPollenPuffAlly: boolean = this.id === Moves.POLLEN_PUFF && targets.includes(user.getAlly().getBattlerIndex()) const exceptPollenPuffAlly: boolean = this.id === Moves.POLLEN_PUFF && targets.includes(user.getAlly()?.getBattlerIndex())
return (!restrictSpread || !isMultiTarget) return (!restrictSpread || !isMultiTarget)
&& !this.isChargingMove() && !this.isChargingMove()