e5b33a0434
* Add check for Magic Guard to avoid taking recoil damage * add test to verify a mon with magic guard does not take recoil damage followed format from "Steel Beam hp loss is prevented by Magic Guard" test * update format of tests with magic guard and some form of recoil damage
17 lines
492 B
C
17 lines
492 B
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
SINGLE_BATTLE_TEST("Magic Guard prevents recoil damage to the user")
|
|
{
|
|
GIVEN {
|
|
ASSUME(gMovesInfo[MOVE_DOUBLE_EDGE].recoil == 33);
|
|
PLAYER(SPECIES_CLEFABLE) { Ability(ABILITY_MAGIC_GUARD); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_DOUBLE_EDGE); }
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_DOUBLE_EDGE, player);
|
|
HP_BAR(opponent);
|
|
NOT HP_BAR(player);
|
|
}
|
|
}
|