The way these buff works is that it just goes to 3 random with priority on the buffer herself. If the user is already same type then it just goes to three other party members who does not hit magic already.
Tree Peony is the 2nd girl to get weakness buff like this, the first case was Balloon Flower/Kikyo.