Fix changing stat falling through enum and throwing exception.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -38,4 +38,12 @@ TEST_CASE("Get creature nickname when unset", "[Library]") {
|
||||
delete creature;
|
||||
}
|
||||
|
||||
TEST_CASE("Increase creature stat boost", "[Library]") {
|
||||
auto library = TestLibrary::Get();
|
||||
auto creature = CreateCreature(library, "testSpecies1", 1).Create();
|
||||
creature->ChangeStatBoost(CreatureLib::Core::Statistic::PhysicalAttack, 6);
|
||||
REQUIRE(creature->GetStatBoost(CreatureLib::Core::Statistic::PhysicalAttack) == 6);
|
||||
delete creature;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user