There are three weapons. Whistle, treat, and petting
You should use them one by one while dodging the attacks.