From 42984396ff178d70358b62a17fa76da4d3db39f6 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Wed, 1 Mar 2023 12:27:41 +0300 Subject: [PATCH] all: fix ImmunityNegationConditionTest --- test/spells/targetConditions/ImmunityNegationConditionTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/spells/targetConditions/ImmunityNegationConditionTest.cpp b/test/spells/targetConditions/ImmunityNegationConditionTest.cpp index f63d09ff5..c7d9f4955 100644 --- a/test/spells/targetConditions/ImmunityNegationConditionTest.cpp +++ b/test/spells/targetConditions/ImmunityNegationConditionTest.cpp @@ -65,7 +65,8 @@ TEST_P(ImmunityNegationConditionTest, WithBattleWideNegation) unitBonuses.addNewBonus(std::make_shared(Bonus::ONE_BATTLE, Bonus::NEGATE_ALL_NATURAL_IMMUNITIES, Bonus::OTHER, 0, 0, 0)); - EXPECT_EQ(!ownerMatches, subject->isReceptive(&mechanicsMock, &unitMock)); + //This should return if ownerMatches, because anyone should cast onto owner's stacks, but not on enemyStacks + EXPECT_EQ(ownerMatches, subject->isReceptive(&mechanicsMock, &unitMock)); } INSTANTIATE_TEST_SUITE_P