Add tests to verify aromatherapy is not affected by heal bell config (#8344)

This commit is contained in:
FosterProgramming 2025-11-25 13:02:31 +01:00 committed by GitHub
parent ec3e16801a
commit b6c6cf9cd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -164,3 +164,53 @@ SINGLE_BATTLE_TEST("Heal Bell cures a Soundproof user (Gen5, Gen8+)")
}
}
}
DOUBLE_BATTLE_TEST("Aromatherapy cure Soundproof battlers regardless of config")
{
u32 ability, config;
PARAMETRIZE { ability = ABILITY_SOUNDPROOF; config = GEN_4; }
PARAMETRIZE { ability = ABILITY_SOUNDPROOF; config = GEN_5; }
PARAMETRIZE { ability = ABILITY_SOUNDPROOF; config = GEN_6; }
PARAMETRIZE { ability = ABILITY_SOUNDPROOF; config = GEN_8; }
GIVEN {
ASSUME(!IsSoundMove(MOVE_AROMATHERAPY));
WITH_CONFIG(GEN_CONFIG_HEAL_BELL_SOUNDPROOF, config);
PLAYER(SPECIES_WOBBUFFET) { Ability(ability); Status1(STATUS1_POISON); };
PLAYER(SPECIES_EXPLOUD) { Ability(ability); Status1(STATUS1_POISON); }
OPPONENT(SPECIES_WYNAUT);
OPPONENT(SPECIES_WYNAUT);
} WHEN {
TURN { MOVE(playerLeft, MOVE_AROMATHERAPY, target: playerLeft); }
} SCENE {
ANIMATION(ANIM_TYPE_MOVE, MOVE_AROMATHERAPY, playerLeft);
NONE_OF {
MESSAGE("Exploud was hurt by its poisoning!");
MESSAGE("Wobbuffet was hurt by its poisoning!");
}
}
}
SINGLE_BATTLE_TEST("Aromatherapy cures inactive Soundproof Pokemon regardless of config")
{
u32 config, ability;
PARAMETRIZE { config = GEN_4, ability = ABILITY_SOUNDPROOF; }
PARAMETRIZE { config = GEN_5, ability = ABILITY_SOUNDPROOF; }
GIVEN {
ASSUME(!IsSoundMove(MOVE_AROMATHERAPY));
WITH_CONFIG(GEN_CONFIG_HEAL_BELL_SOUNDPROOF, config);
PLAYER(SPECIES_WOBBUFFET) { }
PLAYER(SPECIES_EXPLOUD) { Ability(ability); Status1(STATUS1_POISON); }
OPPONENT(SPECIES_WYNAUT);
} WHEN {
TURN { MOVE(player, MOVE_AROMATHERAPY, target: player); }
TURN { SWITCH(player, 1); }
} SCENE {
ANIMATION(ANIM_TYPE_MOVE, MOVE_AROMATHERAPY, player);
SEND_IN_MESSAGE("Exploud");
NOT MESSAGE("Exploud was hurt by its poisoning!");
}
}