When it comes to abilities that say "3 girls including yourself" or "4 girls including yourself" etc.

Which girls does the ability choose? i am trying to make sense of it since it seems counter intuitive, here's an example:



This is a team i made to check how it stacks damage.
Cattleya 27% ATK for 3 including yourself
Toad lily 15% ATK for 4 girls including yourself
Dahlia 10% ATK for all girls
Oncidium 10% ATK for all girls
Dayflower 10% ATK for 3 girls including yourself


Cattleya (27% (cattleya) + 15% (toad lily) + 10% (dahlia) + 10% (oncidium) + 10% (dayflower) = 72%)
Toad lily (15% (toadlily) + 10% (day flower) + 10% (oncidium) + 10% (dahlia) = 45%)
Dahlia (27% (cattleya) + 15% (toad lily) + 10% (oncidium) + 10% (dahlia) = 62%)
Oncidium (27% (cattleya) + 10% (oncidium) + 10% (dahlia) = 47%)
Dayflower (15% (toad lily) + 10% (dayflower) + 10% (oncidium) + 10% (dahlia) = 45%)

As you can see the buffs are all over the place so it's hard to predict which girls are going to get the buff when you're building a team.


And to make things even more confusing heres what happens when theres only one buff on different orders















Does anybody know how it actually works?
I always thought it chose the 2 or 3 nearest girls or the next 2 or 3.