actually a more elegant way would be to focus the main character, then use
1.
/cast [target=focustarget] Fireball

2.
/cast [target=focustarget] Fireblast