Fix explicitSpeed check
Add 'Speed(...)' calls where required.
This commit is contained in:
parent
daebe7eba8
commit
ca2fffc5d0
4 changed files with 6 additions and 4 deletions
|
@ -46,7 +46,7 @@ SINGLE_BATTLE_TEST("Sap Sipper does not increase Attack if already maxed")
|
|||
{
|
||||
GIVEN {
|
||||
PLAYER(SPECIES_MARILL) { Ability(ABILITY_SAP_SIPPER); }
|
||||
OPPONENT(SPECIES_WOBBUFFET) { Speed(1); }
|
||||
OPPONENT(SPECIES_WOBBUFFET);
|
||||
} WHEN {
|
||||
TURN { MOVE(player, MOVE_BELLY_DRUM); MOVE(opponent, MOVE_VINE_WHIP); }
|
||||
} SCENE {
|
||||
|
|
|
@ -57,7 +57,7 @@ SINGLE_BATTLE_TEST("Hail fails if Desolate Land or Primordial Sea are active")
|
|||
DOUBLE_BATTLE_TEST("Hail deals damage based on turn order")
|
||||
{
|
||||
GIVEN {
|
||||
PLAYER(SPECIES_GLALIE);
|
||||
PLAYER(SPECIES_GLALIE) { Speed(4); }
|
||||
PLAYER(SPECIES_WYNAUT) { Speed(1); }
|
||||
OPPONENT(SPECIES_WOBBUFFET) { Speed(2); }
|
||||
OPPONENT(SPECIES_WYNAUT) { Speed(3); }
|
||||
|
|
|
@ -69,7 +69,7 @@ SINGLE_BATTLE_TEST("Sandstorm damage does not hurt Ground, Rock, and Steel-type
|
|||
DOUBLE_BATTLE_TEST("Sandstorm deals damage based on turn order")
|
||||
{
|
||||
GIVEN {
|
||||
PLAYER(SPECIES_PHANPY);
|
||||
PLAYER(SPECIES_PHANPY) { Speed(4); }
|
||||
PLAYER(SPECIES_WYNAUT) { Speed(1); }
|
||||
OPPONENT(SPECIES_WOBBUFFET) { Speed(2); }
|
||||
OPPONENT(SPECIES_WYNAUT) { Speed(3); }
|
||||
|
|
|
@ -330,8 +330,10 @@ static void BattleTest_Run(void *data)
|
|||
|
||||
if (DATA.hasExplicitSpeeds)
|
||||
{
|
||||
// TODO: If a battler is taking the default action maybe it
|
||||
// should not require an explicit speed?
|
||||
if (DATA.explicitSpeeds[B_SIDE_PLAYER] != (1 << DATA.playerPartySize) - 1
|
||||
&& DATA.explicitSpeeds[B_SIDE_OPPONENT] != (1 << DATA.opponentPartySize) - 1)
|
||||
|| DATA.explicitSpeeds[B_SIDE_OPPONENT] != (1 << DATA.opponentPartySize) - 1)
|
||||
{
|
||||
Test_ExitWithResult(TEST_RESULT_INVALID, SourceLine(0), ":LSpeed required for all PLAYERs and OPPONENTs");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue