8f99ef16be
* Adds Move Psychic Noise * changes psychic noise from effect to move_effect * remove leftover --------- Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
56 lines
1.9 KiB
C
56 lines
1.9 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
ASSUME(MoveHasMoveEffect(MOVE_PSYCHIC_NOISE, MOVE_EFFECT_PSYCHIC_NOISE));
|
|
ASSUME(gBattleMoves[MOVE_RECOVER].effect == EFFECT_RESTORE_HP);
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Psychic Noise blocks healing moves for 2 turns")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_PSYCHIC_NOISE); MOVE(opponent, MOVE_RECOVER); }
|
|
TURN { MOVE(opponent, MOVE_RECOVER, allowed: FALSE); }
|
|
TURN { MOVE(opponent, MOVE_RECOVER); }
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_PSYCHIC_NOISE, player);
|
|
MESSAGE("Foe Wobbuffet was prevented from healing!");
|
|
MESSAGE("Foe Wobbuffet was prevented from healing!");
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_STRUGGLE, opponent);
|
|
MESSAGE("Foe Wobbuffet's Heal Block wore off!");
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_RECOVER, opponent);
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Psychic Noise is blocked by Soundproof")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_VOLTORB) { HP(1); Ability(ABILITY_SOUNDPROOF); }
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_PSYCHIC_NOISE); MOVE(opponent, MOVE_RECOVER); }
|
|
} SCENE {
|
|
ABILITY_POPUP(opponent, ABILITY_SOUNDPROOF);
|
|
MESSAGE("Foe Voltorb's Soundproof blocks PsychicNoise!");
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_RECOVER, opponent);
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Psychic Noise heal block effect is blocked by Aroma Veil")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_MILCERY) { Ability(ABILITY_AROMA_VEIL); }
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_PSYCHIC_NOISE); MOVE(opponent, MOVE_RECOVER); }
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_PSYCHIC_NOISE, player);
|
|
ABILITY_POPUP(opponent, ABILITY_AROMA_VEIL);
|
|
MESSAGE("Foe Milcery is protected by an aromatic veil!");
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_RECOVER, opponent);
|
|
}
|
|
}
|