Refactor DurationModifier to enable testing

This commit is contained in:
WarmUpTill
2024-08-03 18:31:57 +02:00
committed by WarmUpTill
parent d4025214e5
commit f9730b1bc2
8 changed files with 169 additions and 142 deletions

View File

@@ -138,7 +138,8 @@ bool Macro::CeckMatch(bool ignorePause)
}
bool conditionMatched = checkCondition(condition);
condition->CheckDurationModifier(conditionMatched);
conditionMatched =
condition->CheckDurationModifier(conditionMatched);
const auto logicType = condition->GetLogicType();
if (logicType == Logic::Type::NONE) {