2023-12-14 23:03:59 +00:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
|
|
|
ASSUME(gItems[ITEM_QUICK_CLAW].holdEffect == HOLD_EFFECT_QUICK_CLAW);
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Quick Claw activates 10% of the time")
|
|
|
|
{
|
2023-12-15 16:05:11 +00:00
|
|
|
PASSES_RANDOMLY(2, 10, RNG_QUICK_CLAW);
|
2023-12-14 23:03:59 +00:00
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET) { Speed(1); Item(ITEM_QUICK_CLAW); }
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET) { Speed(100); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_TACKLE); }
|
|
|
|
} SCENE {
|
|
|
|
MESSAGE("Wobbuffet used Tackle!");
|
|
|
|
MESSAGE("Foe Wobbuffet used Celebrate!");
|
|
|
|
}
|
|
|
|
}
|