pokeemerald/test/battle/ability/gale_wings.c

54 lines
1.8 KiB
C
Raw Normal View History

#include "global.h"
#include "test/battle.h"
SINGLE_BATTLE_TEST("Gale Wings only grants priority at full HP")
{
u16 hp;
PARAMETRIZE { hp = 100; }
PARAMETRIZE { hp = 99; }
GIVEN {
ASSUME(B_GALE_WINGS >= GEN_7);
ASSUME(gBattleMoves[MOVE_AERIAL_ACE].type == TYPE_FLYING);
PLAYER(SPECIES_TALONFLAME) { Ability(ABILITY_GALE_WINGS); HP(hp); MaxHP(100); Speed(1);}
OPPONENT(SPECIES_WOBBUFFET) { Speed(100);};
} WHEN {
TURN { MOVE(player, MOVE_AERIAL_ACE); }
} SCENE {
if (hp == 100) {
MESSAGE("Talonflame used Aerial Ace!");
2023-10-06 15:13:26 +02:00
MESSAGE("Foe Wobbuffet used Celebrate!");
}
else {
MESSAGE("Foe Wobbuffet used Celebrate!");
2023-10-06 15:13:26 +02:00
MESSAGE("Talonflame used Aerial Ace!");
}
}
}
SINGLE_BATTLE_TEST("Gale Wings only grants priority to Flying-type moves")
{
u32 move;
PARAMETRIZE { move = MOVE_AERIAL_ACE; }
PARAMETRIZE { move = MOVE_FLARE_BLITZ; }
GIVEN {
ASSUME(B_GALE_WINGS >= GEN_7);
ASSUME(gBattleMoves[MOVE_AERIAL_ACE].type == TYPE_FLYING);
ASSUME(gBattleMoves[MOVE_FLARE_BLITZ].type == TYPE_FIRE);
PLAYER(SPECIES_TALONFLAME) { Ability(ABILITY_GALE_WINGS); HP(100); MaxHP(100); Speed(1);}
OPPONENT(SPECIES_WOBBUFFET) { Speed(100);};
} WHEN {
TURN { MOVE(player, move); }
} SCENE {
if (move == MOVE_AERIAL_ACE) {
MESSAGE("Talonflame used Aerial Ace!");
2023-10-06 15:13:26 +02:00
MESSAGE("Foe Wobbuffet used Celebrate!");
}
else {
MESSAGE("Foe Wobbuffet used Celebrate!");
2023-10-06 15:13:26 +02:00
MESSAGE("Talonflame used Flare Blitz!");
}
}
}
2023-10-06 15:13:26 +02:00
TO_DO_BATTLE_TEST("Gale Wings doesn't increase priority of Flying-type Hidden Power, Natural Gift, Judgment or Tera Blast");