Add test for Aeroblast.
This commit is contained in:
parent
287d57e140
commit
d0b3e1aec2
|
@ -81,3 +81,15 @@
|
|||
ON_MOVE_EFFECT_TRIGGER(moveName, onEffectCheck) \
|
||||
ON_MOVE_EFFECT_NO_TRIGGER(moveName, onNoEffectCheck) \
|
||||
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 \
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#include "../../Macros/MoveMacros.hpp"
|
||||
using Stats = PkmnLib::Library::Statistic;
|
||||
|
||||
INCREASED_CRITICAL_RATE(Aeroblast, 1)
|
Loading…
Reference in New Issue