2023-12-17 20:47:12 +00:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Innards Out deal dmg on fainting equal to the amount of dmg inflicted on the Innards Out mon")
|
|
|
|
{
|
|
|
|
u16 hp = 0;
|
|
|
|
PARAMETRIZE { hp = 5; }
|
|
|
|
PARAMETRIZE { hp = 15; }
|
|
|
|
PARAMETRIZE { hp = 50; }
|
|
|
|
PARAMETRIZE { hp = 100; } // This takes out Wobbuffet.
|
|
|
|
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_PYUKUMUKU) { HP(hp); Ability(ABILITY_INNARDS_OUT); }
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET) { HP(70); SpAttack(1000); }
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
2024-01-29 11:51:32 +00:00
|
|
|
ASSUME(gMovesInfo[MOVE_PSYCHIC].power != 0);
|
|
|
|
ASSUME(gMovesInfo[MOVE_PSYCHIC].category == DAMAGE_CATEGORY_SPECIAL);
|
2023-12-17 20:47:12 +00:00
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, MOVE_PSYCHIC); SEND_OUT(player, 1); if (hp == 100) { SEND_OUT(opponent, 1); } }
|
|
|
|
} SCENE {
|
2024-10-21 18:52:45 +01:00
|
|
|
MESSAGE("The opposing Wobbuffet used Psychic!");
|
2023-12-17 20:47:12 +00:00
|
|
|
HP_BAR(player, hp);
|
|
|
|
ABILITY_POPUP(player, ABILITY_INNARDS_OUT);
|
|
|
|
HP_BAR(opponent, hp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Innards Out does not trigger after Gastro Acid has been used")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_PYUKUMUKU) { HP(1); Ability(ABILITY_INNARDS_OUT); }
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
2024-01-29 11:51:32 +00:00
|
|
|
ASSUME(gMovesInfo[MOVE_PSYCHIC].power != 0);
|
|
|
|
ASSUME(gMovesInfo[MOVE_GASTRO_ACID].effect == EFFECT_GASTRO_ACID);
|
2023-12-17 20:47:12 +00:00
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, MOVE_GASTRO_ACID); }
|
|
|
|
TURN { MOVE(opponent, MOVE_PSYCHIC); SEND_OUT(player, 1); }
|
|
|
|
} SCENE {
|
2024-10-21 18:52:45 +01:00
|
|
|
MESSAGE("The opposing Wobbuffet used Gastro Acid!");
|
|
|
|
MESSAGE("The opposing Wobbuffet used Psychic!");
|
2023-12-17 20:47:12 +00:00
|
|
|
HP_BAR(player);
|
|
|
|
NONE_OF {
|
|
|
|
ABILITY_POPUP(player, ABILITY_INNARDS_OUT);
|
|
|
|
HP_BAR(opponent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// According to Showdown Innards Out triggers, but does nothing.
|
|
|
|
SINGLE_BATTLE_TEST("Innards Out does not damage Magic Guard Pokemon")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_PYUKUMUKU) { HP(1); Ability(ABILITY_INNARDS_OUT); }
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_CLEFABLE) { Ability(ABILITY_MAGIC_GUARD); }
|
2024-01-29 11:51:32 +00:00
|
|
|
ASSUME(gMovesInfo[MOVE_PSYCHIC].power != 0);
|
2023-12-17 20:47:12 +00:00
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, MOVE_PSYCHIC); SEND_OUT(player, 1); }
|
|
|
|
} SCENE {
|
2024-10-21 18:52:45 +01:00
|
|
|
MESSAGE("The opposing Clefable used Psychic!");
|
2023-12-17 20:47:12 +00:00
|
|
|
HP_BAR(player);
|
|
|
|
ABILITY_POPUP(player, ABILITY_INNARDS_OUT);
|
|
|
|
NOT HP_BAR(opponent);
|
|
|
|
}
|
|
|
|
}
|