void hitByBall(Ball ball)
{
if(ball.owner != null && ball.owner.team != team) {
hitPoints -= (ball.velocity.Length()) / DAMAGE_DENOM;
playHitSound();
hurt = true;
throwing = false;
parrying = false;
velocity.X = ball.velocity.X*10;
velocity.Y = ball.velocity.Y*10;
play("hurt");
blood.spray();
dropBall();
}
}