mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-18 14:22:19 +02:00
Adds a boolean check for the Pollen Puff edge case in canBeMultiStrikeEnhanced
This commit is contained in:
parent
b56c317bf2
commit
dcff60b54c
@ -905,7 +905,7 @@ export default class Move implements Localizable {
|
||||
SacrificialAttrOnHit
|
||||
];
|
||||
|
||||
// ...and cannot enhance these specific moves.
|
||||
// ...and cannot enhance these specific moves
|
||||
const exceptMoves: Moves[] = [
|
||||
Moves.FLING,
|
||||
Moves.UPROAR,
|
||||
@ -914,10 +914,14 @@ export default class Move implements Localizable {
|
||||
Moves.ENDEAVOR
|
||||
];
|
||||
|
||||
// ...and cannot enhance Pollen Puff when targeting an ally.
|
||||
const exceptPollenPuffAlly: boolean = this.id === Moves.POLLEN_PUFF && targets.includes(user.getAlly().getBattlerIndex())
|
||||
|
||||
return (!restrictSpread || !isMultiTarget)
|
||||
&& !this.isChargingMove()
|
||||
&& !exceptAttrs.some(attr => this.hasAttr(attr))
|
||||
&& !exceptMoves.some(id => this.id === id)
|
||||
&& !exceptPollenPuffAlly
|
||||
&& this.category !== MoveCategory.STATUS;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user