[Hotfix] Fix Pollen Puff crash and incorrect failure (#6752)

Fix Pollen Puff crash and incorrect failure

Co-authored-by: damocleas <damocleas25@gmail.com>
This commit is contained in:
Dean 2025-11-04 15:55:44 -08:00 committed by GitHub
parent ef3d950464
commit 604b0f3146
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10700,7 +10700,7 @@ export function initMoves() {
.attr(HealOnAllyAttr, 0.5, true, false)
.ballBombMove()
// Fail if used against an ally that is affected by heal block, during the second failure check
.condition((user, target) => target.isOpponent(user) || !!target.getTag(BattlerTagType.HEAL_BLOCK), 2),
.condition((user, target) => target == null || target.isOpponent(user) || !target.getTag(BattlerTagType.HEAL_BLOCK), 2),
new AttackMove(MoveId.ANCHOR_SHOT, PokemonType.STEEL, MoveCategory.PHYSICAL, 80, 100, 20, 100, 0, 7)
.attr(AddBattlerTagAttr, BattlerTagType.TRAPPED, false, false, 1, 1, true),
new StatusMove(MoveId.PSYCHIC_TERRAIN, PokemonType.PSYCHIC, -1, 10, -1, 0, 7)