mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 11:37:40 +01:00
55 lines
1.6 KiB
C
55 lines
1.6 KiB
C
#include "global.h"
|
|
#include "test_battle.h"
|
|
|
|
SINGLE_BATTLE_TEST("Damp prevents explosion-like moves from enemies")
|
|
{
|
|
u32 move;
|
|
PARAMETRIZE { move = MOVE_EXPLOSION; }
|
|
PARAMETRIZE { move = MOVE_SELF_DESTRUCT; }
|
|
PARAMETRIZE { move = MOVE_MIND_BLOWN; }
|
|
PARAMETRIZE { move = MOVE_MISTY_EXPLOSION; }
|
|
GIVEN {
|
|
PLAYER(SPECIES_PARAS) { Ability(ABILITY_DAMP); };
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(opponent, move); }
|
|
} SCENE {
|
|
ABILITY_POPUP(player, ABILITY_DAMP);
|
|
NONE_OF { HP_BAR(player); HP_BAR(opponent); }
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Damp prevents explosion-like moves from self")
|
|
{
|
|
u32 move;
|
|
PARAMETRIZE { move = MOVE_EXPLOSION; }
|
|
PARAMETRIZE { move = MOVE_SELF_DESTRUCT; }
|
|
PARAMETRIZE { move = MOVE_MIND_BLOWN; }
|
|
PARAMETRIZE { move = MOVE_MISTY_EXPLOSION; }
|
|
GIVEN {
|
|
PLAYER(SPECIES_PARAS) { Ability(ABILITY_DAMP); };
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, move); }
|
|
} SCENE {
|
|
ABILITY_POPUP(player, ABILITY_DAMP);
|
|
NONE_OF { HP_BAR(player); HP_BAR(opponent); }
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Damp prevents damage from aftermath")
|
|
{
|
|
GIVEN {
|
|
ASSUME(gBattleMoves[MOVE_TACKLE].flags & FLAG_MAKES_CONTACT);
|
|
PLAYER(SPECIES_PARAS) { Ability(ABILITY_DAMP); };
|
|
OPPONENT(SPECIES_VOLTORB) { Ability(ABILITY_AFTERMATH); HP(1); };
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_TACKLE); SEND_OUT(opponent, 1); }
|
|
} SCENE {
|
|
ABILITY_POPUP(opponent, ABILITY_AFTERMATH);
|
|
ABILITY_POPUP(player, ABILITY_DAMP);
|
|
NONE_OF { HP_BAR(player); }
|
|
}
|
|
}
|