b6d3bdf622
* accurate confusion chance and a test * Accurate Poison Touch chance and tests * Accurate cursed body chance * Create cursed_body.c
17 lines
546 B
C
17 lines
546 B
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
SINGLE_BATTLE_TEST("Cursed Body triggers 30% of the time")
|
|
{
|
|
PASSES_RANDOMLY(3, 10, RNG_CURSED_BODY);
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_FRILLISH) { Ability(ABILITY_CURSED_BODY); }
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_AQUA_JET); }
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_AQUA_JET, player);
|
|
ABILITY_POPUP(opponent, ABILITY_CURSED_BODY);
|
|
MESSAGE("Wobbuffet's Aqua Jet was disabled by Foe Frillish's Cursed Body!");
|
|
}
|
|
}
|