|
|
@ -119,7 +119,7 @@ function isValidTarget(unit,syndrome)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
for caste,creature in ipairs(syndrome.syn_affected_creature) do
|
|
|
|
for caste,creature in ipairs(syndrome.syn_affected_creature) do
|
|
|
|
local affectedCreature = creature.value
|
|
|
|
local affectedCreature = creature.value
|
|
|
|
local affectedCaste = syndrome.syn_affectedCaste[caste].value
|
|
|
|
local affectedCaste = syndrome.syn_affected_caste[caste].value
|
|
|
|
if affectedCreature == unitRaceName and (affectedCaste == unitCasteName or affectedCaste == "ALL") then
|
|
|
|
if affectedCreature == unitRaceName and (affectedCaste == unitCasteName or affectedCaste == "ALL") then
|
|
|
|
affected = true
|
|
|
|
affected = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|