Update ability.ts

This commit is contained in:
Blitzy 2025-05-02 20:00:54 -05:00 committed by GitHub
parent 3a89b7bb75
commit d72af56f7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6907,6 +6907,8 @@ export function initAbilities() {
.attr(IllusionBreakAbAttr)
// The Pokemon loses its illusion when damaged by a move
.attr(PostDefendIllusionBreakAbAttr, true)
// Disable Illusion in fusions
.attr(NoFusionAbilityAbAttr)
// Illusion is available again after a battle
.conditionalAttr((pokemon) => pokemon.isAllowedInBattle(), IllusionPostBattleAbAttr, false)
.uncopiable()