To be fair this was never a thing. Diff of HEAD vs e44373d which is Feb 6, 2023
Code:-function isAuraApplicable(nodeEffect, rSource, token, auraType)
- local rTarget = ActorManager.resolveActor(CombatManager.getCTFromToken(token))
+function isAuraApplicable(nodeEffect, rSource, rTarget, aFactions)
+ local rAuraSource
+
+ local sSourcePath = DB.getValue(nodeEffect, 'source_name', '')
+ if sSourcePath == '' then
+ rAuraSource = rSource -- Source is the Source
+ else
+ rAuraSource = ActorManager.resolveActor(DB.findNode(DB.getPath(DB.getChild(nodeEffect, '...'))))
+ end
+
+ local aConditions = { 'FACTION(' .. table.concat(aFactions, ',') .. ')' }
+ local aCondHelper = {}
+ if EffectManager4E then
+ aCondHelper.remainder = aConditions
+ aCondHelper.original = DB.getValue(nodeEffect, 'label')
+ else
+ aCondHelper = aConditions
+ end
if
rTarget ~= rSource
and DB.getValue(nodeEffect, 'isactive', 0) == 1
- and checkConditionalBeforeAura(nodeEffect, ActorManager.getCTNode(rSource), ActorManager.getCTNode(rTarget))
- and AuraFactionConditional.checkFaction(rTarget, rSource, auraType)
+ and checkConditionalBeforeAura(nodeEffect, rSource, rTarget)
+ and AuraFactionConditional.DetectedEffectManager.checkConditional(rAuraSource, nodeEffect, aCondHelper, rTarget)
then
return true
end

