sovereignx/test/battle/hold_effect/quick_claw.c
sneed 312dcbb8a8
Speed Ignoring effect fixes (#4613)
* Custap ties with Quick Draw, Stall with Mycelium

* add a test
2024-05-24 11:21:35 +02:00

22 lines
616 B
C

#include "global.h"
#include "test/battle.h"
ASSUMPTIONS
{
ASSUME(gItemsInfo[ITEM_QUICK_CLAW].holdEffect == HOLD_EFFECT_QUICK_CLAW);
ASSUME(gItemsInfo[ITEM_QUICK_CLAW].holdEffectParam == 20);
}
SINGLE_BATTLE_TEST("Quick Claw activates 20% of the time")
{
PASSES_RANDOMLY(2, 10, RNG_QUICK_CLAW);
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!");
}
}