166a1a4e63
* Adds ability Embody Aspect + minor fix to Hospitality * comment out failing tests related to neutralizing gas * fixes neutralizing gas bug * leftover
66 lines
2.2 KiB
C
66 lines
2.2 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
ASSUME(B_INTREPID_SWORD == GEN_9);
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Intrepid Sword raises Attack by one stage")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_ZACIAN) { Ability(ABILITY_INTREPID_SWORD); }
|
|
} WHEN {
|
|
TURN { }
|
|
} SCENE {
|
|
ABILITY_POPUP(opponent, ABILITY_INTREPID_SWORD);
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponent);
|
|
MESSAGE("Foe Zacian's Intrepid Sword raised its Attack!");
|
|
} THEN {
|
|
EXPECT_EQ(opponent->statStages[STAT_ATK], DEFAULT_STAT_STAGE + 1);
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Intrepid Sword raises Attack by one stage only once per battle")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_ZACIAN) { Ability(ABILITY_INTREPID_SWORD); }
|
|
OPPONENT(SPECIES_WYNAUT);
|
|
} WHEN {
|
|
TURN { SWITCH(opponent, 1); }
|
|
TURN { SWITCH(opponent, 0); }
|
|
} SCENE {
|
|
ABILITY_POPUP(opponent, ABILITY_INTREPID_SWORD);
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponent);
|
|
MESSAGE("Foe Zacian's Intrepid Sword raised its Attack!");
|
|
NONE_OF {
|
|
ABILITY_POPUP(opponent, ABILITY_INTREPID_SWORD);
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponent);
|
|
MESSAGE("Foe Zacian's Intrepid Sword raised its Attack!");
|
|
}
|
|
} THEN {
|
|
EXPECT_EQ(opponent->statStages[STAT_ATK], DEFAULT_STAT_STAGE);
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Intrepid Sword activates when it's no longer effected by Neutralizing Gas")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_WEEZING) { Ability(ABILITY_NEUTRALIZING_GAS); }
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_ZACIAN) { Ability(ABILITY_INTREPID_SWORD); }
|
|
} WHEN {
|
|
TURN { SWITCH(player, 1); }
|
|
} SCENE {
|
|
ABILITY_POPUP(player, ABILITY_NEUTRALIZING_GAS);
|
|
MESSAGE("Neutralizing Gas filled the area!");
|
|
MESSAGE("Weezing, that's enough! Come back!");
|
|
MESSAGE("The effects of Neutralizing Gas wore off!");
|
|
ABILITY_POPUP(opponent, ABILITY_INTREPID_SWORD);
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponent);
|
|
MESSAGE("Foe Zacian's Intrepid Sword raised its Attack!");
|
|
}
|
|
}
|
|
|