today i dont have a question why something is not working but instead why something is working.
i have an ability that shall be able to target anything but not allied heroic units (but enemy heroic or allied normal units)
therefore i created 2 validators (unit filter match) with heroic excluded and the other one with allied excluded
then i created a combine validator, set it to AND. now i am not able to target allied nor heroic units.
then i checked "negate" of the combi validator. now i get an error before getting into the target mode of the ability.
then i created another combine validator, set it to AND, checked negate, added my first combine validator and now it works!
the question now is, but WHY?
it should have worked with the first negate (according to my brain-ALU). what's the logic here.
Basically, you have:
1) Not Heroic & Not Ally -> Normal enemy units
2) Not (Not Heroic & Not Ally) -> translates to "Heroic & Ally" -> Heroic allied units
3) Not (Not (Not Heroic & Not Ally)) -> apply De Morgan (basically remove double negatives & flip "and"s & "or"s -> translates to "Not Heroic or Not Ally" -> Non-heroic allied units or any enemy unit
If I were to recommend another way of making that validator, why not "Enemy Units OR Non-Heroic Allied Units"? It's simpler.
hello there,
today i dont have a question why something is not working but instead why something is working.
i have an ability that shall be able to target anything but not allied heroic units (but enemy heroic or allied normal units)
therefore i created 2 validators (unit filter match) with heroic excluded and the other one with allied excluded
then i created a combine validator, set it to AND. now i am not able to target allied nor heroic units.
then i checked "negate" of the combi validator. now i get an error before getting into the target mode of the ability.
then i created another combine validator, set it to AND, checked negate, added my first combine validator and now it works!
the question now is, but WHY?
it should have worked with the first negate (according to my brain-ALU). what's the logic here.
Sounds like De Morgan's Law.
Basically, you have:
1) Not Heroic & Not Ally -> Normal enemy units
2) Not (Not Heroic & Not Ally) -> translates to "Heroic & Ally" -> Heroic allied units
3) Not (Not (Not Heroic & Not Ally)) -> apply De Morgan (basically remove double negatives & flip "and"s & "or"s -> translates to "Not Heroic or Not Ally" -> Non-heroic allied units or any enemy unit
If I were to recommend another way of making that validator, why not "Enemy Units OR Non-Heroic Allied Units"? It's simpler.
@StealthToast: Go
thx
good point :D