Full Restore confusion test
PLS READ COMMENT THIS IS KNOWN_FAILING
This commit is contained in:
parent
cbac6d0e87
commit
4bad450ecf
1 changed files with 22 additions and 1 deletions
|
@ -22,4 +22,25 @@ SINGLE_BATTLE_TEST("Full Restore restores a battler's HP and cures any primary s
|
|||
EXPECT_EQ(player->hp, player->maxHP);
|
||||
EXPECT_EQ(player->status1, STATUS1_NONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SINGLE_BATTLE_TEST("Full Restore restores a battler's HP and cures confusion")
|
||||
{
|
||||
// known failing bc even though it passes there is an underlying bug still that is only obvious in the replay. see #2938
|
||||
// this also means that this test is likely not very good so I advice this to be redone
|
||||
KNOWN_FAILING;
|
||||
GIVEN {
|
||||
ASSUME(gItems[ITEM_FULL_RESTORE].battleUsage == EFFECT_ITEM_HEAL_AND_CURE_STATUS);
|
||||
PLAYER(SPECIES_WOBBUFFET) { HP(1); MaxHP(300);};
|
||||
OPPONENT(SPECIES_WOBBUFFET);
|
||||
} WHEN {
|
||||
TURN{ MOVE(opponent, MOVE_CONFUSE_RAY); }
|
||||
TURN{ USE_ITEM(player, ITEM_FULL_RESTORE, partyIndex: 0); }
|
||||
TURN{ MOVE(player, MOVE_TACKLE); }
|
||||
} SCENE {
|
||||
MESSAGE("Full Restore restored Wobbuffet's health!");
|
||||
NONE_OF { MESSAGE("Wobbuffet is confused!"); }
|
||||
} FINALLY {
|
||||
EXPECT_EQ(player->hp, player->maxHP);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue