From 8b3428923c887a7e7b64f4997673623f087c4112 Mon Sep 17 00:00:00 2001 From: hedara90 <90hedara@gmail.com> Date: Fri, 28 Mar 2025 21:20:50 +0100 Subject: [PATCH] Changed KNOWN_FAILING test (#6492) Co-authored-by: Hedara --- test/battle/move_effect/toxic_spikes.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/test/battle/move_effect/toxic_spikes.c b/test/battle/move_effect/toxic_spikes.c index 70053b4a44..641fc0520c 100644 --- a/test/battle/move_effect/toxic_spikes.c +++ b/test/battle/move_effect/toxic_spikes.c @@ -186,13 +186,9 @@ SINGLE_BATTLE_TEST("Toxic Spikes are removed by grounded Poison-type Pokémon on } } -// This would test for what I believe to be a bug in the mainline games. -// A Pokémon that gets passed magnet rise should still remove the Toxic -// Spikes even though it is airborne. -// The test currently fails, because we don't incorporate this bug. -SINGLE_BATTLE_TEST("Toxic Spikes are removed by Poison-type Pokémon affected by Magnet Rise on switch in") +// Tested in Gen 7 on cartridge +SINGLE_BATTLE_TEST("Toxic Spikes are not removed by Poison-type Pokémon affected by Magnet Rise on switch in") { - KNOWN_FAILING; GIVEN { ASSUME(gSpeciesInfo[SPECIES_EKANS].types[0] == TYPE_POISON); PLAYER(SPECIES_WOBBUFFET); @@ -203,9 +199,8 @@ SINGLE_BATTLE_TEST("Toxic Spikes are removed by Poison-type Pokémon affected by TURN { MOVE(player, MOVE_TOXIC_SPIKES); MOVE(opponent, MOVE_BATON_PASS); SEND_OUT(opponent, 1); } TURN { SWITCH(opponent, 0); } } SCENE { - NOT STATUS_ICON(opponent, poison: TRUE); - MESSAGE("The poison spikes disappeared from the ground around the opposing team!"); - NOT STATUS_ICON(opponent, poison: TRUE); + NOT MESSAGE("The poison spikes disappeared from the ground around the opposing team!"); + STATUS_ICON(opponent, poison: TRUE); } }