Animal Friendship - casting this should not be considered an attack when it's meant to be friendly and just increase charisma bonuses, if applicable. I don't know about other animals, but it was classified as an attack when cast on Deep Rothé.
Eh... dunno if that is really a bug as Animal Friendship doesn't grant any charisma bonuses at all. RAW in 5e:
This spell lets you convince a beast that you mean it no harm. Choose a beast that you can see within range. It must see and hear you. If the beast’s Intelligence is 4 or higher, the spell fails. Otherwise, the beast must succeed on a Wisdom saving throw or be charmed by you for the spell’s duration. If you or one of your companions harms the target, the spells ends.
Charm a beast and convince it you mean no harm.
Prerequisite: the beast cannot have an intelligence of 4 or higher. The spell ends if you or one of your companions harms the beast.
And it takes an action to do, so you'll lose your attack action if in combat. In combat it's meant as a crowd control, and outside of combat it has it's story uses. It's one of those spells when used outside of combat, if the animal passes it's WIS check, the DM has discretion as to what the animal does (become hostile or not), thus counting it as an attack or not. And I'd say Larian, as the DM of this game, has choosen to make it count as an attack.