Patched Server and takedamage function