Added a missing attribute and fixed the hp calculation.