Say a member of the party has had Suggestion cast on them by a hostile creature.
Can the other party members end the spell by attacking the affected party member?
Or is that condition for the spell ending restricted only to the hostile spellcaster and their allies?