- Joined
- May 31, 2019
- Messages
- 150
I have a trigger that damages enemy/neutral units in an area. It uses this variable to get the units that are to be damaged.
This mostly works, the units in the group get damaged, but for some reason air units appear to be included, even though i thought the condition would exclude them. I made sure I had nothing else around that could cause damage to air units. Anyone know what the issue might be?
JASS:
Set tmpUnitGroup = (Units within 80.00 of tmpPoint matching ((((Matching unit) is A flying unit) Equal to False) and ((((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True) or ((Owner of (Matching unit)) Equal to Neutral Passive))))
This mostly works, the units in the group get damaged, but for some reason air units appear to be included, even though i thought the condition would exclude them. I made sure I had nothing else around that could cause damage to air units. Anyone know what the issue might be?