31 lines
1.1 KiB
C
31 lines
1.1 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
ASSUME(gBattleMoves[MOVE_WATER_GUN].category == BATTLE_CATEGORY_SPECIAL);
|
|
ASSUME(gBattleMoves[MOVE_ENTRAINMENT].effect == EFFECT_ENTRAINMENT);
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Vessel of Ruin reduces Sp. Atk if opposing mon's ability doesn't match")
|
|
{
|
|
s16 damage[2];
|
|
|
|
GIVEN {
|
|
PLAYER(SPECIES_TING_LU) { Ability(ABILITY_VESSEL_OF_RUIN); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(opponent, MOVE_WATER_GUN); MOVE(player, MOVE_ENTRAINMENT); }
|
|
TURN { MOVE(opponent, MOVE_WATER_GUN); }
|
|
} SCENE {
|
|
ABILITY_POPUP(player, ABILITY_VESSEL_OF_RUIN);
|
|
MESSAGE("Ting-Lu's Vessel of Ruin weakened the Sp. Atk of all surrounding Pokémon!");
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_WATER_GUN, opponent);
|
|
HP_BAR(player, captureDamage: &damage[0]);
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_ENTRAINMENT, player);
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_WATER_GUN, opponent);
|
|
HP_BAR(player, captureDamage: &damage[1]);
|
|
} THEN {
|
|
EXPECT_MUL_EQ(damage[0], Q_4_12(1.33), damage[1]);
|
|
}
|
|
}
|