2022-12-24 06:13:42 +01:00
|
|
|
#include "global.h"
|
|
|
|
#include "test_battle.h"
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Poison Point inflicts poison on contact")
|
|
|
|
{
|
|
|
|
u32 move;
|
|
|
|
PARAMETRIZE { move = MOVE_TACKLE; }
|
|
|
|
PARAMETRIZE { move = MOVE_SWIFT; }
|
|
|
|
GIVEN {
|
2023-07-03 10:01:59 +02:00
|
|
|
ASSUME(gBattleMoves[MOVE_TACKLE].makesContact);
|
|
|
|
ASSUME(!gBattleMoves[MOVE_SWIFT].makesContact);
|
2022-12-24 06:13:42 +01:00
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_NIDORAN_M) { Ability(ABILITY_POISON_POINT); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, move); }
|
|
|
|
TURN {}
|
|
|
|
} SCENE {
|
2023-07-03 10:01:59 +02:00
|
|
|
if (gBattleMoves[move].makesContact) {
|
2022-12-24 06:13:42 +01:00
|
|
|
ABILITY_POPUP(opponent, ABILITY_POISON_POINT);
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_PSN, player);
|
|
|
|
MESSAGE("Wobbuffet was poisoned by Foe Nidoran♂'s Poison Point!");
|
|
|
|
STATUS_ICON(player, poison: TRUE);
|
|
|
|
} else {
|
|
|
|
NOT ABILITY_POPUP(opponent, ABILITY_POISON_POINT);
|
|
|
|
NOT ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_PSN, player);
|
|
|
|
NOT MESSAGE("Wobbuffet was poisoned by Foe Nidoran♂'s Poison Point!");
|
|
|
|
NOT STATUS_ICON(player, poison: TRUE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|