NOT A BUG: Iron Moth's calculated speed is 1837, and 1837 > 1809. Due to the way Speed under Trick Room is calculated on cartridge games since Gen 5, Pokémon with over or exactly 1809 Spe go before Pokémon under 1809 Spe.https://replay.pokemonshowdown.com/gen9anythinggoes-1766452366-ds5qu0jpwcabptkd0c407kvk5dy4vf0pw
For some unknown reason, trick rooms effects didn't work, and iron moth moved first every single time. Even my opponent was confused.