Add common function to set damage w/ stun duration to commands.py