added cd attribute to hero and unit