Skip to content

Commit

Permalink
Add test for OpenEnroth#1717
Browse files Browse the repository at this point in the history
  • Loading branch information
pskelton committed Jul 9, 2024
1 parent 40ff9dc commit ecb9135
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/Bin/GameTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(OE_BUILD_TESTS)
ExternalProject_Add(OpenEnroth_TestData
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/test_data_tmp
GIT_REPOSITORY https://github.com/OpenEnroth/OpenEnroth_TestData.git
GIT_TAG 8f2632bec950b8d9068092e5e4618ddec66d4de6
GIT_TAG ed51ea8da54b29817ab54c6a3debd258cd2e05bd
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/test_data
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
Expand Down
10 changes: 10 additions & 0 deletions test/Bin/GameTest/GameTests_1500.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,13 @@ GAME_TEST(issues, Issue1710) {
EXPECT_TRUE(expressionTape.contains(CHARACTER_EXPRESSION_FEAR));
EXPECT_GT(zpos.max(), zpos.min() + 1000);
}

GAME_TEST(issues, Issue1717) {
// Immolation incorrect damage message
auto statusBar = tapes.statusBar();
auto immoBuff = tapes.custom([]() { return pParty->pPartyBuffs[PARTY_BUFF_IMMOLATION].Active(); });
test.playTraceFromTestData("issue_1717.mm7", "issue_1717.json");
EXPECT_EQ(immoBuff, tape( false, true ));
EXPECT_EQ(pParty->pPartyBuffs[PARTY_BUFF_IMMOLATION].caster, 4);
EXPECT_TRUE(statusBar.contains("Immolation deals 77 damage to 2 target(s)"));
}

0 comments on commit ecb9135

Please sign in to comment.