2022-12-24 06:13:42 +01:00
|
|
|
#include "global.h"
|
2023-08-12 21:00:15 +02:00
|
|
|
#include "test/battle.h"
|
2022-12-24 06:13:42 +01:00
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Immunity prevents Poison Sting poison")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
ASSUME(gBattleMoves[MOVE_POISON_STING].effect == EFFECT_POISON_HIT);
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_SNORLAX) { Ability(ABILITY_IMMUNITY); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_POISON_STING); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_POISON_STING, player);
|
|
|
|
NOT STATUS_ICON(opponent, poison: TRUE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Immunity prevents Toxic bad poison")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
ASSUME(gBattleMoves[MOVE_TOXIC].effect == EFFECT_TOXIC);
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_SNORLAX) { Ability(ABILITY_IMMUNITY); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_TOXIC); }
|
|
|
|
} SCENE {
|
|
|
|
MESSAGE("Wobbuffet used Toxic!");
|
|
|
|
ABILITY_POPUP(opponent, ABILITY_IMMUNITY);
|
|
|
|
MESSAGE("Foe Snorlax's Immunity prevents poisoning!");
|
|
|
|
NOT STATUS_ICON(opponent, poison: TRUE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Immunity prevents Toxic Spikes poison")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
ASSUME(gBattleMoves[MOVE_TOXIC_SPIKES].effect == EFFECT_TOXIC_SPIKES);
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_SNORLAX) { Ability(ABILITY_IMMUNITY); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_TOXIC_SPIKES); }
|
|
|
|
TURN { SWITCH(opponent, 1); }
|
|
|
|
} SCENE {
|
|
|
|
NOT STATUS_ICON(opponent, poison: TRUE);
|
|
|
|
}
|
|
|
|
}
|