2023-07-25 08:59:26 +01:00
|
|
|
#include "global.h"
|
2023-08-12 20:00:15 +01:00
|
|
|
#include "test/battle.h"
|
2023-07-25 08:59:26 +01:00
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
2024-01-29 11:51:32 +00:00
|
|
|
ASSUME(gMovesInfo[MOVE_WATER_GUN].category == DAMAGE_CATEGORY_SPECIAL);
|
|
|
|
ASSUME(gMovesInfo[MOVE_ENTRAINMENT].effect == EFFECT_ENTRAINMENT);
|
2023-07-25 08:59:26 +01:00
|
|
|
}
|
|
|
|
|
2023-12-22 14:05:35 +00:00
|
|
|
SINGLE_BATTLE_TEST("Vessel of Ruin reduces Sp. Atk if opposing mon's ability doesn't match")
|
2023-07-25 08:59:26 +01:00
|
|
|
{
|
2023-12-22 14:05:35 +00:00
|
|
|
s16 damage[2];
|
2023-07-25 08:59:26 +01:00
|
|
|
|
|
|
|
GIVEN {
|
2023-12-22 14:05:35 +00:00
|
|
|
PLAYER(SPECIES_TING_LU) { Ability(ABILITY_VESSEL_OF_RUIN); }
|
2023-07-25 08:59:26 +01:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
2023-12-22 14:05:35 +00:00
|
|
|
TURN { MOVE(opponent, MOVE_WATER_GUN); MOVE(player, MOVE_ENTRAINMENT); }
|
2023-07-25 08:59:26 +01:00
|
|
|
TURN { MOVE(opponent, MOVE_WATER_GUN); }
|
|
|
|
} SCENE {
|
2023-12-22 14:05:35 +00:00
|
|
|
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]);
|
2023-07-25 08:59:26 +01:00
|
|
|
}
|
|
|
|
}
|