You will most likely have to create a new custom Validator. So do that, name it HasBehaviorX(if it's a behavior called Stunned, name it HasStunned), Validator type type Unit Compare Behavior Count.
In your new validator, modify the Validator - Behavior field and add your behavior you want it to check Validator - Compare field set to Equal To(this might be the default, dunno) Validator - Unit + set to (none):Target Validator - Value set to 1
Validator is done! Now switch to your effects tab, and find your Search Area effect. What you will want to do is in the Effect - Validator field, set that to HasStunned, your custom validator. Now the Search - Areas + field's Effect will only activate if your Validator returns true, IE it finds a target within it's radius with the Behavior 'Stunned' on it, for example.
Is there a way to make a search effect that only search for unit with a specific behaviour ?
Yes there is.
You will most likely have to create a new custom Validator. So do that, name it HasBehaviorX(if it's a behavior called Stunned, name it HasStunned), Validator type type Unit Compare Behavior Count.
In your new validator, modify the Validator - Behavior field and add your behavior you want it to check
Validator - Compare field set to Equal To(this might be the default, dunno)
Validator - Unit + set to (none):Target
Validator - Value set to 1
Validator is done! Now switch to your effects tab, and find your Search Area effect. What you will want to do is in the Effect - Validator field, set that to HasStunned, your custom validator. Now the Search - Areas + field's Effect will only activate if your Validator returns true, IE it finds a target within it's radius with the Behavior 'Stunned' on it, for example.