public function setMaxHealth($amount)
{
if (is_null($this->attributeMap->getAttribute(Attribute::HEALTH))) {
$this->attributeMap->addAttribute(Attribute::getAttribute(Attribute::HEALTH));
}
$this->attributeMap->getAttribute(Attribute::HEALTH)->setMaxValue($amount);
}