Add test for Aeroblast.

This commit is contained in:
Deukhoofd 2020-02-20 14:16:20 +01:00
parent 287d57e140
commit d0b3e1aec2
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 17 additions and 1 deletions

View File

@ -80,4 +80,16 @@
#define CHANCE_BASED_MOVE(moveName, chance, onEffectCheck, onNoEffectCheck) \
ON_MOVE_EFFECT_TRIGGER(moveName, onEffectCheck) \
ON_MOVE_EFFECT_NO_TRIGGER(moveName, onNoEffectCheck) \
MOVE_EFFECT_CHANCE(moveName, chance)
MOVE_EFFECT_CHANCE(moveName, chance)
#define INCREASED_CRITICAL_RATE(moveName, expectedStage) \
TEST_CASE(#moveName " - Increased critical ratio", "[moves]") { \
SETUP_MOVE_TEST(moveName) \
\
auto pkmnScript = dynamic_cast<PkmnLib::Battling::PkmnScript*>(script); \
uint8_t critStage = 0; \
pkmnScript->ModifyCriticalStage(executingMove, userMon, 0, &critStage); \
CHECK(critStage == expectedStage); \
\
CLEANUP_MOVE_TEST \
}

View File

@ -0,0 +1,4 @@
#include "../../Macros/MoveMacros.hpp"
using Stats = PkmnLib::Library::Statistic;
INCREASED_CRITICAL_RATE(Aeroblast, 1)