ImproveAIAreaOfEffectProfiles
Tracking Issue: #1369
Setting bTestTargetEffectsApply on AOE Profiles in XComAI is supposed to filter the list of acceptable targets for a given Area of Effect ability by looking through the targeting conditions on each effect and checking whether or not the prospective targets are immune to the damage (this is done in X2Effect::TargetIsValidForAbility). However, this feature was not built to handle grenade templates and the logic for multitargeteffects was also being short-circuited due to bValid not being reset between each unit (i.e. so if a single unit passed the check, all subsequent units in the AOE were being added to the supposedly-filtered target list).