mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 12:14:20 +01:00
231ebea3f0
* Tests for 6 more abilities * Fix most of Egg's comments * Update Purifying Salt and Leaf Guard * Parenthesis fixes
31 lines
1.2 KiB
C
31 lines
1.2 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
ASSUME(P_GEN_7_POKEMON == TRUE); // Because only Necrozma can have this ability.
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Neuroforce increases the strength of super-effective moves by 25%", s16 damage)
|
|
{
|
|
u32 move;
|
|
u16 ability;
|
|
PARAMETRIZE { ability = ABILITY_NEUROFORCE; move = MOVE_SHADOW_BALL; }
|
|
PARAMETRIZE { ability = ABILITY_KLUTZ; move = MOVE_SHADOW_BALL; }
|
|
PARAMETRIZE { ability = ABILITY_NEUROFORCE; move = MOVE_TACKLE; }
|
|
PARAMETRIZE { ability = ABILITY_KLUTZ; move = MOVE_TACKLE; }
|
|
GIVEN {
|
|
ASSUME(gBattleMoves[MOVE_SHADOW_BALL].type == TYPE_GHOST);
|
|
ASSUME(gBattleMoves[MOVE_TACKLE].type == TYPE_NORMAL);
|
|
PLAYER(SPECIES_NECROZMA_ULTRA) { Ability(ability); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, move); }
|
|
} SCENE {
|
|
HP_BAR(opponent, captureDamage: &results[i].damage);
|
|
} FINALLY {
|
|
EXPECT_MUL_EQ(results[1].damage, UQ_4_12(1.25), results[0].damage); // Neuroforce boosts the power of super-effective moves
|
|
EXPECT_EQ(results[2].damage, results[3].damage); // Neuroforce doesn't boost the power of other moves
|
|
}
|
|
}
|