Fix errors in caste_attack