[Bug][Ability] Tangling Hair / Gooey now work when its user faints

https://github.com/pagefaultgames/pokerogue/pull/6618

fix: add bypass faint to tangling hair and gooey
This commit is contained in:
Sirz Benjie 2025-10-03 01:01:11 -05:00 committed by GitHub
parent 95b31c4cc6
commit 35da617d0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7299,7 +7299,8 @@ export function initAbilities() {
new Ability(AbilityId.PIXILATE, 6)
.attr(MoveTypeChangeAbAttr, PokemonType.FAIRY, 1.2, (_user, _target, move) => move.type === PokemonType.NORMAL),
new Ability(AbilityId.GOOEY, 6)
.attr(PostDefendStatStageChangeAbAttr, (_target, _user, move) => move.hasFlag(MoveFlags.MAKES_CONTACT), Stat.SPD, -1, false),
.attr(PostDefendStatStageChangeAbAttr, (_target, _user, move) => move.hasFlag(MoveFlags.MAKES_CONTACT), Stat.SPD, -1, false)
.bypassFaint(),
new Ability(AbilityId.AERILATE, 6)
.attr(MoveTypeChangeAbAttr, PokemonType.FLYING, 1.2, (_user, _target, move) => move.type === PokemonType.NORMAL),
new Ability(AbilityId.PARENTAL_BOND, 6)
@ -7464,7 +7465,8 @@ export function initAbilities() {
new Ability(AbilityId.SOUL_HEART, 7)
.attr(PostKnockOutStatStageChangeAbAttr, Stat.SPATK, 1),
new Ability(AbilityId.TANGLING_HAIR, 7)
.attr(PostDefendStatStageChangeAbAttr, (target, user, move) => move.doesFlagEffectApply({flag: MoveFlags.MAKES_CONTACT, user, target}), Stat.SPD, -1, false),
.attr(PostDefendStatStageChangeAbAttr, (target, user, move) => move.doesFlagEffectApply({flag: MoveFlags.MAKES_CONTACT, user, target}), Stat.SPD, -1, false)
.bypassFaint(),
new Ability(AbilityId.RECEIVER, 7)
.attr(CopyFaintedAllyAbilityAbAttr)
.uncopiable(),