public AbilityCommandInfo Clone(Unit caster) { AbilityCommandInfo cCommandInfo = (AbilityCommandInfo)MemberwiseClone(); cCommandInfo.CommandName = (string)CommandName.Clone(); cCommandInfo.LastCommand = null; cCommandInfo.NextCommand = null; if (DamageInfo != null) { cCommandInfo.DamageInfo = DamageInfo.Clone(caster); } return(cCommandInfo); }