Fixed a bug when creating an attack in gameplay::Character.