Add test for AcidSpray.
This commit is contained in:
parent
56b540e6fc
commit
f0738f8cf3
|
@ -1,8 +1,8 @@
|
|||
#include <CreatureLib/Battling/Models/ExecutingAttack.hpp>
|
||||
#include <PkmnLib/Battling/Pokemon/CreatePokemon.hpp>
|
||||
#include <PkmnLib/Battling/Battle/Battle.hpp>
|
||||
#include "../../../extern/catch.hpp"
|
||||
#include "../Macros/MoveMacros.hpp"
|
||||
#include <PkmnLib/Battling/Pokemon/CreatePokemon.hpp>
|
||||
#include "../../../../extern/catch.hpp"
|
||||
#include "../../Macros/MoveMacros.hpp"
|
||||
|
||||
TEST_CASE("Absorb - Heals on use", "[moves]") {
|
||||
SETUP_MOVE_TEST(Absorb)
|
|
@ -1,4 +1,4 @@
|
|||
#include "../Macros/MoveMacros.hpp"
|
||||
#include "../../Macros/MoveMacros.hpp"
|
||||
|
||||
using Stats = PkmnLib::Library::Statistic;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "../Macros/MoveMacros.hpp"
|
||||
#include "../../Macros/MoveMacros.hpp"
|
||||
using Stats = PkmnLib::Library::Statistic;
|
||||
|
||||
TEST_CASE("AcidArmor - Increases defense by 2", "[moves]") {
|
|
@ -0,0 +1,12 @@
|
|||
#include "../../Macros/MoveMacros.hpp"
|
||||
using Stats = PkmnLib::Library::Statistic;
|
||||
|
||||
TEST_CASE("AcidSpray - Increases defense by 2", "[moves]") {
|
||||
SETUP_MOVE_TEST(Acid_Spray)
|
||||
|
||||
CHECK(userMon->GetStatBoost(Stats::SpecialDefense) == 0);
|
||||
script->OnSecondaryEffect(executingMove, userMon, 0);
|
||||
CHECK(userMon->GetStatBoost(Stats::SpecialDefense) == -2);
|
||||
|
||||
CLEANUP_MOVE_TEST
|
||||
}
|
Loading…
Reference in New Issue