#include "global.h" #include "test/battle.h" SINGLE_BATTLE_TEST("Shed Skin triggers 33% of the time") { if (B_ABILITY_TRIGGER_CHANCE == GEN_4) PASSES_RANDOMLY(30, 100, RNG_SHED_SKIN); else PASSES_RANDOMLY(33, 100, RNG_SHED_SKIN); GIVEN { ASSUME(MoveMakesContact(MOVE_TACKLE)); PLAYER(SPECIES_WOBBUFFET); OPPONENT(SPECIES_ARBOK) { Status1(STATUS1_POISON); Ability(ABILITY_SHED_SKIN); } } WHEN { TURN; } SCENE { ABILITY_POPUP(opponent, ABILITY_SHED_SKIN); MESSAGE("The opposing Arbok's Shed Skin cured its poison problem!"); STATUS_ICON(opponent, poison: FALSE); } }