#include "global.h" #include "test_battle.h" SINGLE_BATTLE_TEST("White Smoke prevents intimidate") { s16 turnOneHit; s16 turnTwoHit; GIVEN { PLAYER(SPECIES_EKANS) { Ability(ABILITY_SHED_SKIN); }; PLAYER(SPECIES_EKANS) { Ability(ABILITY_INTIMIDATE); }; OPPONENT(SPECIES_TORKOAL) { Ability(ABILITY_WHITE_SMOKE); }; } WHEN { TURN { MOVE(opponent, MOVE_TACKLE); } TURN { SWITCH(player, 1); MOVE(opponent, MOVE_TACKLE); } } SCENE { HP_BAR(player, captureDamage: &turnOneHit); ABILITY_POPUP(player, ABILITY_INTIMIDATE); NONE_OF { ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, player); } ABILITY_POPUP(opponent, ABILITY_WHITE_SMOKE); MESSAGE("Foe Torkoal's White Smoke prevents stat loss!"); HP_BAR(player, captureDamage: &turnTwoHit); } THEN { EXPECT_EQ(turnOneHit, turnTwoHit); } } TO_DO_BATTLE_TEST("White Smoke prevents stat stage reduction from moves"); // Growl, Leer, Confide, Fake Tears, Scary Face, Sweet Scent, Sand Attack (Attack, Defense, Sp. Attack, Sp. Defense, Speed, Evasion, Accuracy TO_DO_BATTLE_TEST("White Smoke prevents Sticky Web"); TO_DO_BATTLE_TEST("White Smoke doesn't prevent stat stage reduction from moves used by the user"); // e.g. Superpower TO_DO_BATTLE_TEST("White Smoke doesn't prevent Speed reduction from Iron Ball"); TO_DO_BATTLE_TEST("White Smoke doesn't prevent Speed reduction from paralysis"); TO_DO_BATTLE_TEST("White Smoke doesn't prevent Attack reduction from burn"); TO_DO_BATTLE_TEST("White Smoke doesn't prevent receiving negative stat changes from Baton Pass"); TO_DO_BATTLE_TEST("White Smoke doesn't prevent Topsy-Turvy"); TO_DO_BATTLE_TEST("White Smoke doesn't prevent Spectral Thief from resetting positive stat changes"); TO_DO_BATTLE_TEST("White Smoke is ignored by Mold Breaker");