Certain creatures have attacks like charge or pounce, which allows them to do something special after travelling a certain distance. For example, see the [panther][1]:

> If the panther moves at least 20 feet straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 12 Strength saving throw or be knocked prone.

Imagine a small beastmaster ranger riding a panther. The panther runs 15ft and the rider shoots an arrow at a target or uses a lance to hit a target 10ft away. The panther moves another 5ft and pounces.

Does attacking (or having a rider attack) cancel the pounce? I think not, but want to make sure.

I will add that I’m thinking within the context of a beastmaster riding his beast.

  [1]: https://www.dndbeyond.com/monsters/panther