I was playing a game in G+K when my AI team mates started attacking some city states. I noticed that the catapults and even the pike men were throwing fireballs. How do I do that? I know players can do that.
As @Dom commented, this is the standard animation for many units when attacking cities. You have no control over it, nor does it have any special effect.