pokerogue
pokerogue copied to clipboard
[Bug] PostDefendAbAttr Abilities (Sand Spit, Electromorphosis, etc) Activate when Hit by a Move with Substitute Active.
Describe the bug
Abilities that use PostDefendAbAttr should not activate when a substitute is attacked.
Sand Spit, Seed Sower, Color Change, Cursed Body, Electromorphosis, Wind Power, Toxic Debris, Justified, Liquid Ooze, etc
-Moves with this attribute that require contact are blocked correctly, presumable because substitute prevents moves from making contact with the user.
-Anger Point is blocked too for some reason (+6 on crit)
No Discord Report for this issue yet but it was brought up with (Mimikyu's Disguise gets hit before Substitute) https://discord.com/channels/1125469663833370665/1291084587643961455
Reproduction
ABILITY_OVERRIDE: Abilities = Abilities.(PostDefendAbAttr); MOVESET_OVERRIDE: Moves | Array<Moves> = [Moves.SUBSTITUTE]; OPP_MOVESET_OVERRIDE: Moves | Array<Moves> = [Tackle or Hp Stealing for Liquid Ooze];
Expected behavior
-Abilities tagged PostDefendAbAttr should not be triggered through substitute;
Color Change does not activate if the Pokémon's substitute is hit. -Bulba
https://replay.pokemonshowdown.com/gen9customgame-2215606910-4rlywb18nlf4dlsyqkq14vhlvuuhq4cpw Color Change, Toxic Debris, Seed Sower, Electromorphosis
https://replay.pokemonshowdown.com/gen9customgame-2215610128-lgmbs8hct5j5nsgoq08o3n43gnz4yw1pw Sand Spit, Cursed Body, Wind Power, Pickpocket
https://replay.pokemonshowdown.com/gen9customgame-2215614199-m1q94lx5l454wd1ndazuaqzptb109s2pw Anger Point, Perish Body, Mummy, Iron Barbs
-They should also activate with Infiltrator once that gets added https://replay.pokemonshowdown.com/gen9customgame-2215624806-tymsr6n20uhaqee072t2wful8gewx9epw
Screenshots / Videos
Color Change
https://github.com/user-attachments/assets/b4d9c764-0142-4325-841c-ab3496a80e40
Liquid Ooze
https://github.com/user-attachments/assets/c54303ac-b844-42a8-9c4b-0bec60be9219
Sand Spit
https://github.com/user-attachments/assets/c59393de-5aab-4891-afe1-171e64ffb9f6
Toxic Debris
https://github.com/user-attachments/assets/53a8cd13-f04b-4c96-ae9e-746fe3a4cfeb
Perish Body Is blocked correctly because it requires contact
https://github.com/user-attachments/assets/5d0c1ff5-efe7-4fc0-8808-bbdb06abb539
Anger Point is Blocked Correctly for some reason (Maybe the crit gets eaten by the substitute?)
https://github.com/user-attachments/assets/66c05270-d940-4feb-9aa6-4f70301271f1
Session export file
No response
User data export file
No response
Additional context
No response